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

select组件动态切换options的循环值,无法赋值 #46

Closed
Pinary opened this issue Nov 1, 2016 · 2 comments
Closed

select组件动态切换options的循环值,无法赋值 #46

Pinary opened this issue Nov 1, 2016 · 2 comments

Comments

@Pinary
Copy link

Pinary commented Nov 1, 2016

我动态改变select组件的option v-for的数值时, 没有通知select组件更新内部的optionsInstance,
我暂时通过增加一个select属性list, 然后watch list的变化,发现变化则调用this.updateOptions(true) 来强制更新optionsInstance, 但是需要保持 select组件的属性list和option v-for绑定的数据一致来解决

@icarusion
Copy link
Contributor

已知问题,有一些组件有同样问题。目前正在思考比价好的监听slot的方法。

@luckymore
Copy link

this.updateOptions(true) 执行的多了,,浏览器会崩溃哎

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

3 participants