From 10418fea0a1d9441523e7183a671002c3dc2ed21 Mon Sep 17 00:00:00 2001 From: dk <1260500659@qq.com> Date: Tue, 23 Jun 2026 10:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(table-search-fields):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E7=9A=84=E7=BB=84=E4=BB=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom/table-search-fields.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/custom/table-search-fields.vue b/src/components/custom/table-search-fields.vue index 44b798d..561711c 100644 --- a/src/components/custom/table-search-fields.vue +++ b/src/components/custom/table-search-fields.vue @@ -68,7 +68,6 @@ const props = withDefaults(defineProps(), { }); interface Emits { - (e: 'update:modelValue', value: Record): void; (e: 'search'): void; (e: 'reset'): void; } @@ -133,11 +132,8 @@ function handleSearch() { } function updateFieldValue(field: SearchField, value: any) { - const nextValue = field.transformValue ? field.transformValue(value) : value; - emit('update:modelValue', { - ...props.modelValue, - [field.key]: nextValue - }); + // eslint-disable-next-line vue/no-mutating-props + props.modelValue[field.key] = field.transformValue ? field.transformValue(value) : value; } function getFieldValue(field: SearchField) {