From 9065ef4eb9dea8bd06db288296f9a0c99ad50a6e Mon Sep 17 00:00:00 2001 From: teukkk Date: Tue, 19 Nov 2024 14:36:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=80=E5=90=AF=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=90=8E-=E8=A1=A8=E6=A0=BC=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-table/base-table.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index afd34d1b80..f1dbb74ce4 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -1007,6 +1007,18 @@ } ); + watch( + () => props.notShowTableFilter, + (val: boolean) => { + if (val) { + // 表格基础筛选条件清空选中 + currentColumns.value.forEach((column) => { + column.filterCheckedList = []; + }); + } + } + ); + defineExpose({ initColumn, });