Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

环境: browser / google chrome / antd-mobile: 1.0.1 / dva

疑问:

Pop.show后, 布局中有个按钮触发dispatch,  state数据更改后, Pop布局状态未更新

关键代码:

onClick = (e) => {
    e.preventDefault(); // 修复 Android 上点击穿透
    Popup.show(
      <BuyPopWindow
        price={this.props.price}
        imageUrl={this.props.imageUrl}
        attribute={this.props.attribute}
        attributes={this.props.attributes}
        onClickLabel={this.onClickLabel.bind(this)}
      />, {animationType: 'slide-up', maskClosable: false});
};

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
611 views
Welcome To Ask or Share your Answers For Others

1 Answer

说了几遍,建议先去issue搜索....

https://github.com/ant-design...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...