【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 ---

dependabot/npm_and_yarn/jeecgboot-vue3/vite-6.0.9
JEECG 2025-02-06 22:21:09 +08:00
parent dd9ec47cdb
commit 63d60092dc
2 changed files with 6 additions and 2 deletions

View File

@ -371,7 +371,9 @@
if (props.column.dataIndex) {
if (!props.record.editValueRefs) props.record.editValueRefs = {};
props.record.editValueRefs[props.column.dataIndex] = currentValueRef;
// update-begin--author:liaozhiyang---date:20250206---forissues/7709dataSource
props.record.editValueRefs[props.column.dataIndex] = unref(currentValueRef);
// update-end--author:liaozhiyang---date:20250206---forissues/7709dataSource
}
/* eslint-disable */
props.record.onCancelEdit = () => {

View File

@ -73,6 +73,8 @@ export type EditRecordRow<T = Recordable> = Partial<
submitCbs: Cbs[];
cancelCbs: Cbs[];
validCbs: Cbs[];
editValueRefs: Recordable<Ref>;
// update-begin--author:liaozhiyang---date:20250206---forissues/7709dataSource
editValueRefs: Recordable;
// update-end--author:liaozhiyang---date:20250206---forissues/7709dataSource
} & T
>;