From 30ddada8f7485a20ed28b4b160bfcc30d467429d Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 13 Nov 2024 10:22:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BB=84=E4=BB=B6):=20ms-form-table=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=A1=A8=E6=A0=BC=E7=AD=9B=E9=80=89=E9=AB=98?= =?UTF-8?q?=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-form-table/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pure/ms-form-table/index.vue b/frontend/src/components/pure/ms-form-table/index.vue index 50365e333e..fddd0d1af3 100644 --- a/frontend/src/components/pure/ms-form-table/index.vue +++ b/frontend/src/components/pure/ms-form-table/index.vue @@ -13,6 +13,7 @@ ]" bordered :row-class="rowClass" + :filter="filterData" v-on="propsEvent" @drag-change="tableChange" @init-end="validateAndUpdateErrorMessageList" @@ -355,7 +356,7 @@ const expandedKeys = defineModel('expandedKeys', { default: [] }); const originalSelectedKeys = defineModel<(string | number)[]>('originalSelectedKeys', { default: [] }); - const filterData = ref({}); + const filterData = ref>({}); async function initColumns() { if (props.showSetting && props.tableKey) { @@ -407,6 +408,7 @@ dataIndex: string, isCustomParam: boolean ) => { + filterData.value[dataIndex] = value; emit('filterChange', dataIndex, value, isCustomParam); };