打包后this.props.visible 在IE9中 visible 未定义
Closed this issue · 1 comments
kangning1206 commented
现在源码:
constructor(props) {
super(props);
this.state = {
confirmLoading: false,
visible: this.props.visible
};
}
改进后:
constructor(props) {
super(props);
this.state = {
confirmLoading: false,
visible: props.visible
};
}
是不是constructor 直接使用props.visible即可,没必要this.props.visible,可能觉得奇怪,为什么之前没遇到这种错误呢,近期uxcore组件打包工具 gulp lib 也在升级,可能与打包有关系;
eternalsky commented
fix in ver. 0.2.10