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 }}
- + - + - +