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

checkbox-group中选中后绑定数值更新了,但是视图没更新 #3253

Closed
fewbadboy opened this issue Jun 13, 2020 · 1 comment
Closed

Comments

@fewbadboy
Copy link

Bug report(问题描述)

弹窗dialog中根据不同的操作去显示tabs中不同的tab-pane的内容。在某一个显示的tab-pane中存在一个form,form中有一个checkbox-group。当点击选中checkbox-group中某一个选项的时候,通过change事件可以发现绑定的值发生了变化,但是视图并没有更新。当点击选择多个的时候,checkbox-group绑定的值只在最原始绑定的值得基础上,添加最后一次选择checkbox的值,同时不会显示选中的状态。只能通过点击一次切换一下tab才会显示上一次点击选中checkbox的状态。我原本以为是elementUI的问题,自己写了一个demo去测试了一下,发现是没问题的。
codepen地址

但是在当前开源框架中用同样的结构操作显示有问题

虽然我这通过在每次在选择chexkbox的时候通过来回切换tabs解决了显示的这个问题,但感觉这个好像也算个bug吧

Steps to reproduce(问题复现步骤)

在截图中展示的是在现有框架上展示出现的问题

Screenshot or Gif(截图或动态图)

20200613140607

@Harry-qi
Copy link

视图更新问题建议看下 检测变化的注意事项

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

2 participants