提交 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.initExcel({datas:this.props.datas,trees:this.props.trees},()=>{
this.setState({ this.setState({
...this.state, ...this.state,
...this.props, ...this.props,
isReady: true, isReady: true,
formConfig: { ...this.state.formConfig, style: this.props.style }, 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.initExcel({datas:nextProps.datas,trees:nextProps.trees},()=>{
this.setState({ this.setState({
...this.state, ...this.state,
...nextProps, ...nextProps,
isReady: true, isReady: true,
formConfig: { ...this.state.formConfig, style: nextProps.style }, formConfig: { ...this.state.formConfig, style: nextProps.style },
}); });
}) this.initExcel({datas:nextProps.datas,trees:nextProps.trees})
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论