mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 ---
parent
dd9ec47cdb
commit
63d60092dc
|
@ -371,7 +371,9 @@
|
||||||
|
|
||||||
if (props.column.dataIndex) {
|
if (props.column.dataIndex) {
|
||||||
if (!props.record.editValueRefs) props.record.editValueRefs = {};
|
if (!props.record.editValueRefs) props.record.editValueRefs = {};
|
||||||
props.record.editValueRefs[props.column.dataIndex] = currentValueRef;
|
// update-begin--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭
|
||||||
|
props.record.editValueRefs[props.column.dataIndex] = unref(currentValueRef);
|
||||||
|
// update-end--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭
|
||||||
}
|
}
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
props.record.onCancelEdit = () => {
|
props.record.onCancelEdit = () => {
|
||||||
|
|
|
@ -73,6 +73,8 @@ export type EditRecordRow<T = Recordable> = Partial<
|
||||||
submitCbs: Cbs[];
|
submitCbs: Cbs[];
|
||||||
cancelCbs: Cbs[];
|
cancelCbs: Cbs[];
|
||||||
validCbs: Cbs[];
|
validCbs: Cbs[];
|
||||||
editValueRefs: Recordable<Ref>;
|
// update-begin--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭
|
||||||
|
editValueRefs: Recordable;
|
||||||
|
// update-end--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭
|
||||||
} & T
|
} & T
|
||||||
>;
|
>;
|
||||||
|
|
Loading…
Reference in New Issue