From d240b739b966403657ddbb2cac9d80bdc18c5324 Mon Sep 17 00:00:00 2001 From: xzz2021 Date: Sat, 1 Mar 2025 10:17:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=97=E8=AE=BE=E7=BD=AE=E5=BC=B9=E7=AA=97=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/src/components/ColumnSetting.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Table/src/components/ColumnSetting.vue b/src/components/Table/src/components/ColumnSetting.vue index 35595f9..f0c3825 100644 --- a/src/components/Table/src/components/ColumnSetting.vue +++ b/src/components/Table/src/components/ColumnSetting.vue @@ -51,7 +51,7 @@ const confirm = () => { const newColumns = cloneDeep(unref(settingColumns))?.map((item) => { const fixed = unref(settingColumns)?.find((col) => col.field === item.field)?.fixed item.hidden = !unref(checkColumns)?.includes(item.field) - item.fixed = fixed ? fixed : undefined + item.fixed = fixed ? fixed : false return item }) emit('confirm', [...unref(hiddenColumns), ...(newColumns || [])]) @@ -65,7 +65,7 @@ const restore = () => { const initColumns = (columns: TableColumn[], isReStore = false) => { const newColumns = columns?.filter((item) => { if (!isReStore) { - item.fixed = item.fixed !== void 0 ? item.fixed : undefined + item.fixed = item.fixed !== void 0 ? item.fixed : false } return (item.type && !DEFAULT_FILTER_COLUMN.includes(item.type)) || !item.type }) @@ -133,18 +133,18 @@ watch( :key="item.field" class="flex items-center justify-between mt-12px" > - + {{ item.label }}
- + - + - +