We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在avue-cli中使用项目时,使用v-model 与 $attrs时,子组件无法接收到value
--- Vue 2.5.2 ---
// child.vue <template> <div> <!-- {} --> {{$attrs}} </div> </template> //parent.vue <template> <div> <Child v-model="parentVal" /> </div> </template> <script> export default{ data() { return { parentVal: 'parentVal', } } } </script>
--- Vue 2.6.1 ---
// child.vue <template> <div> <!-- {value: 'parentVal'} --> {{$attrs}} </div> </template> //parent.vue <template> <div> <Child v-model="parentVal" /> </div> </template> <script> export default{ data() { return { parentVal: 'parentVal', } } } </script>
使用vue 2.6.1以上版本
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题
在avue-cli中使用项目时,使用v-model 与 $attrs时,子组件无法接收到value
--- Vue 2.5.2 ---
--- Vue 2.6.1 ---
解决
使用vue 2.6.1以上版本
资料
The text was updated successfully, but these errors were encountered: