提交 acab7121 authored 作者: tb53863844's avatar tb53863844

修复bug

上级 ea03463c
......@@ -53,15 +53,13 @@ export default class ZdyTable extends Component {
} = this.props;
if (isPreview || isChild) {
console.log("FFFFFFFFFFFFFFFFFF",this.props.datas,this.props.trees)
this.initExcel({datas:this.props.datas,trees:this.props.trees},()=>{
this.setState({
...this.state,
...this.props,
isReady: true,
formConfig: { ...this.state.formConfig, style: this.props.style },
});
})
this.setState({
...this.state,
...this.props,
isReady: true,
formConfig: { ...this.state.formConfig, style: this.props.style },
});
this.initExcel({datas:this.props.datas,trees:this.props.trees})
return;
}
......@@ -311,15 +309,13 @@ export default class ZdyTable extends Component {
} = nextProps;
if (isPreview || isChild) {
this.initExcel({datas:nextProps.datas,trees:nextProps.trees},()=>{
this.setState({
...this.state,
...nextProps,
isReady: true,
formConfig: { ...this.state.formConfig, style: nextProps.style },
});
})
this.setState({
...this.state,
...nextProps,
isReady: true,
formConfig: { ...this.state.formConfig, style: nextProps.style },
});
this.initExcel({datas:nextProps.datas,trees:nextProps.trees})
return;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论