修复table编辑后确认数据丢失问题
This commit is contained in:
parent
9174f97ee0
commit
03b7e4396d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue