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

修复bug

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