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

Popup shou出来的组件不会实时render吗,state里的值改变了,show里面的组件不会触发render #635

Closed
small752 opened this issue Dec 13, 2016 · 10 comments

Comments

@small752
Copy link

Popup shou出来的组件不会实时render吗,state里的值改变了,show里面的组件不会触发render

@warmhug
Copy link
Contributor

warmhug commented Dec 13, 2016

show 参数里是自己的组件,自己组件里控制重新渲染。

@small752
Copy link
Author

恩,后来实现了,之前主要是因为调用的地方是用dva框架写得,model里数据变不会触发 打开pop的函数,后来自己再组件内部解决了

@small752
Copy link
Author

可以close了 ^^

@warmhug warmhug closed this as completed Dec 14, 2016
@yazhengwang
Copy link

解决了,把弹出内容单独写在一个class去通过state渲染就可以了

@handoudou
Copy link

@small752 @yazhengwang 能不能详细说一下解决方法?

@yazhengwang
Copy link

yazhengwang commented May 8, 2017 via email

@xiaochunyong
Copy link

@yazhengwang 我也是单独定义出来的, 但是无法connect, 方便留个联系方式么? 看看你是如何实现的~

@kaigekong
Copy link

kaigekong commented Aug 19, 2017

thanks
@small752 @yazhengwang

ex: <Regional /> 自定义组件
Popup.show(<Regional />, { animationType: 'slide-up', maskClosable: true})

@warmhug
Copy link
Contributor

warmhug commented Dec 13, 2017

升级到 2.0,是用 Modal popup 代替

@horizon0514
Copy link

使用state 代替吧,然后在componentwillreceiveprops 改state

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

7 participants