修复table编辑后确认数据丢失问题

This commit is contained in:
rickcole 2020-08-21 11:14:28 +08:00
parent 9174f97ee0
commit 03b7e4396d

View File

@ -244,7 +244,8 @@ export default class FormTable extends React.Component<TableProps, TableState> {
const scaffold = this.props.scaffold;
this.setState({
editIndex: index,
editting: editting || (value && value[index]) || scaffold || {},
editting: this.editting =
editting || (value && value[index]) || scaffold || {},
isCreateMode: isCreate,
columns:
this.state.isCreateMode === isCreate