From aa8c2da7155772f9c1f1adc091fa2eca7d775b7d Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Fri, 14 Mar 2025 15:18:32 +0800 Subject: [PATCH] Fixed: Label Click --- src/components/Table/TagSearch/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Table/TagSearch/index.vue b/src/components/Table/TagSearch/index.vue index b65f2736e..a47f38457 100644 --- a/src/components/Table/TagSearch/index.vue +++ b/src/components/Table/TagSearch/index.vue @@ -338,6 +338,7 @@ export default { }, handleTagClick(v, k) { let unableChange = false + for (const field of this.options) { if (field.value === v.key) { if (field.type === 'choice') { @@ -346,15 +347,20 @@ export default { if (field.type === 'boolean') { unableChange = true } + if (field.type === 'labeled_choice') { + unableChange = true + } } } - if (unableChange) { - return - } + + if (unableChange) return + if (this.filterValue.length !== 0) { this.handleConfirm() } + this.$delete(this.filterTags, k) + this.filterKey = v.key this.filterValue = v.value this.$refs.SearchInput.focus()