mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
fix(amis-editor): input-table关闭确认模式时,仍然有mock数据
This commit is contained in:
parent
47866b3e17
commit
5eb473661b
@ -1423,7 +1423,7 @@ export class TableControlPlugin extends BasePlugin {
|
||||
if (Array.isArray(props.columns)) {
|
||||
props.columns.forEach((column: any) => {
|
||||
/** 可编辑状态下不写入 Mock 数据,避免误导用户 */
|
||||
if (column.name && !props.editable) {
|
||||
if (column.name && !props.editable && !!props.needConfirm) {
|
||||
setVariable(mockedData, column.name, mockValue(column));
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user