From f2f6bc6c045dcb9d0f556a4a288639559d2aadc9 Mon Sep 17 00:00:00 2001 From: Derek Date: Sat, 2 May 2026 23:57:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Select=20=E5=92=8C=20GroupSelector=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当选项数量 > 5 时自动启用搜索过滤,无需修改任何使用处代码。 - Select.vue: searchable 默认值改为 'auto',内部自动判断 - GroupSelector.vue: 新增 searchable prop 和搜索输入框 --- .../src/components/common/GroupSelector.vue | 58 +++++++++++++++---- frontend/src/components/common/Select.vue | 15 +++-- 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/common/GroupSelector.vue b/frontend/src/components/common/GroupSelector.vue index 582b6f0b..e5980ef5 100644 --- a/frontend/src/components/common/GroupSelector.vue +++ b/frontend/src/components/common/GroupSelector.vue @@ -5,7 +5,24 @@ {{ t('common.selectedCount', { count: modelValue.length }) }}
+ + +
+