-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Popup shou出来的组件不会实时render吗,state里的值改变了,show里面的组件不会触发render #635
Comments
show 参数里是自己的组件,自己组件里控制重新渲染。 |
恩,后来实现了,之前主要是因为调用的地方是用dva框架写得,model里数据变不会触发 打开pop的函数,后来自己再组件内部解决了 |
可以close了 ^^ |
解决了,把弹出内容单独写在一个class去通过state渲染就可以了 |
@small752 @yazhengwang 能不能详细说一下解决方法? |
我是把 show 的组件单独定义出来了
在 2017-04-10 17:33:05,"handoudou" <notifications@github.com> 写道:
@small752@yazhengwang 能不能详细说一下解决方法?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@yazhengwang 我也是单独定义出来的, 但是无法connect, 方便留个联系方式么? 看看你是如何实现的~ |
thanks ex: |
升级到 2.0,是用 Modal popup 代替 |
使用state 代替吧,然后在componentwillreceiveprops 改state |
Popup shou出来的组件不会实时render吗,state里的值改变了,show里面的组件不会触发render
The text was updated successfully, but these errors were encountered: