From 63d60092dcf1b81f5e763f69bbb7902f20a51be8 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Thu, 6 Feb 2025 22:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/7709=E3=80=91=E5=BD=93dataSourc?= =?UTF-8?q?e=E6=98=AF=E5=93=8D=E5=BA=94=E5=BC=8F=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=E7=BC=96=E8=BE=91=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=AD=20---?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Table/src/components/editable/EditableCell.vue | 4 +++- .../src/components/Table/src/components/editable/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue b/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue index edc2541a..75a67cc3 100644 --- a/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue +++ b/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue @@ -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---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 + props.record.editValueRefs[props.column.dataIndex] = unref(currentValueRef); + // update-end--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 } /* eslint-disable */ props.record.onCancelEdit = () => { diff --git a/jeecgboot-vue3/src/components/Table/src/components/editable/index.ts b/jeecgboot-vue3/src/components/Table/src/components/editable/index.ts index 41914737..94ee499a 100644 --- a/jeecgboot-vue3/src/components/Table/src/components/editable/index.ts +++ b/jeecgboot-vue3/src/components/Table/src/components/editable/index.ts @@ -73,6 +73,8 @@ export type EditRecordRow = Partial< submitCbs: Cbs[]; cancelCbs: Cbs[]; validCbs: Cbs[]; - editValueRefs: Recordable; + // update-begin--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 + editValueRefs: Recordable; + // update-end--author:liaozhiyang---date:20250206---for:【issues/7709】当dataSource是响应式时,单元格编辑输入会自动关闭 } & T >;