mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
修复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;
|
const scaffold = this.props.scaffold;
|
||||||
this.setState({
|
this.setState({
|
||||||
editIndex: index,
|
editIndex: index,
|
||||||
editting: editting || (value && value[index]) || scaffold || {},
|
editting: this.editting =
|
||||||
|
editting || (value && value[index]) || scaffold || {},
|
||||||
isCreateMode: isCreate,
|
isCreateMode: isCreate,
|
||||||
columns:
|
columns:
|
||||||
this.state.isCreateMode === isCreate
|
this.state.isCreateMode === isCreate
|
||||||
|
Loading…
Reference in New Issue
Block a user