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) {