From 8bca4191f2146fea600149982dae83098c33d0bd Mon Sep 17 00:00:00 2001 From: guanj Date: Thu, 9 Jul 2026 15:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/header/index.vue | 30 +++++++++++++++++-- src/components/table/index.vue | 22 ++++++++++++-- .../business/terminal/userLedger/index.vue | 7 +++-- .../components/monitorLedgerTable.vue | 27 +++++++++++++++-- 4 files changed, 77 insertions(+), 9 deletions(-) diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index 474633d0..a12f1402 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -70,7 +70,15 @@ - 列设置 + + 列设置 + { + const table = tableStore?.table?.ref as any + if (!table) return + customColumnVisibleOnPress = table.getCustomVisible?.() ?? !!table.reactData?.customStore?.visible + if (table.reactData?.customStore) { + table.reactData.customStore.activeBtn = true + } +} const openCustomColumn = () => { - tableStore?.table?.ref?.openCustom?.() + const table = tableStore?.table?.ref as any + if (!table) return + if (table.reactData?.customStore) { + table.reactData.customStore.activeBtn = false + } + if (customColumnVisibleOnPress) { + table.closeCustom?.() + } else { + table.openCustom?.() + } } onMounted(() => { if (props.showCustomColumn && tableStore?.table) { diff --git a/src/components/table/index.vue b/src/components/table/index.vue index a0ec80ff..72054ffc 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -1,7 +1,7 @@