From a2cb1d9f25fbcd03711515008b901f3ad6f25819 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Tue, 19 Aug 2025 14:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/8529=E3=80=91setColumns?= =?UTF-8?q?=E5=B0=86=E5=8E=9F=E6=9C=AC=E9=9A=90=E8=97=8F=E7=9A=84=E5=88=97?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=90=8E=EF=BC=8C=E5=88=97=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=87=8C=E5=8D=B4=E6=B2=A1=E6=9C=89=E5=8B=BE=E9=80=89=E8=AF=A5?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/src/components/settings/ColumnSetting.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jeecgboot-vue3/src/components/Table/src/components/settings/ColumnSetting.vue b/jeecgboot-vue3/src/components/Table/src/components/settings/ColumnSetting.vue index 458f40f21..6448ea348 100644 --- a/jeecgboot-vue3/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/jeecgboot-vue3/src/components/Table/src/components/settings/ColumnSetting.vue @@ -222,14 +222,18 @@ checkSelect.value = !!values.rowSelection; }); // update-begin--author:liaozhiyang---date:20240724---for:【issues/6908】多语言无刷新切换时,BasicColumn和FormSchema里面的值不能正常切换 - watch([localeStore, getColumnsRef], () => { + watch([localeStore], () => { const columns = getColumns(); plainOptions.value = columns; plainSortOptions.value = columns; cachePlainOptions.value = columns; }); // update-end--author:liaozhiyang---date:20240724---for:【issues/6908】多语言无刷新切换时,BasicColumn和FormSchema里面的值不能正常切换 - + // update-begin--author:liaozhiyang---date:20250813---for:【issues/8529】setColumns将原本隐藏的列展示后,列配置里却没有勾选该列 + watch([getColumnsRef], () => { + init(); + }); + // update-end--author:liaozhiyang---date:20250813---for:【issues/8529】setColumns将原本隐藏的列展示后,列配置里却没有勾选该列 function getColumns() { const ret: Options[] = []; // update-begin--author:liaozhiyang---date:20250403---for:【issues/7996】表格列组件取消所有或者只勾选中间,显示非预期