Skip to content
New issue

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

v-model无法进行双向数据绑定 #47

Open
lige95276 opened this issue Dec 11, 2018 · 7 comments
Open

v-model无法进行双向数据绑定 #47

lige95276 opened this issue Dec 11, 2018 · 7 comments

Comments

@lige95276
Copy link

想改变v-model绑定的值,想赋值为空,但是选择的项都没变

@dwqs
Copy link
Owner

dwqs commented Dec 13, 2018

你的意思是清空选择数据吗?

@lige95276
Copy link
Author

你的意思是清空选择数据吗?

是的啊 ,把v-model绑定的那个值 ,赋值为空数组,但是选择的项没有变

@dwqs
Copy link
Owner

dwqs commented Dec 13, 2018

暂时不支持 #19

@zhucheng1991
Copy link

楼主 能不能支持下v-model啊 或者有没有办法清空选择的数据

@lige95276
Copy link
Author

楼主 能不能支持下v-model啊 或者有没有办法清空选择的数据

把 v-model绑定的值赋null , 用v-if把 组件重新渲染一下

@Linkontoask
Copy link

@redwolf1996
Copy link

可以利用 :key值绑定个时间戳 进行刷新组件 就不用 v-if了

楼主 能不能支持下v-model啊 或者有没有办法清空选择的数据

把 v-model绑定的值赋null , 用v-if把 组件重新渲染一下

可以利用 :key值绑定个时间戳 进行刷新组件 就不用 v-if了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants