From ae3ab0d376959cd8560e45dce24b6a8b1b39d162 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期五, 30 十月 2026 20:30:25 +0800
Subject: [PATCH] fix(dashboard): 补齐 glass-tilt 样式,修复新卡片白底/透明不一致

---
 src/components/form-create/components/use-api-select.tsx |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/components/form-create/components/use-api-select.tsx b/src/components/form-create/components/use-api-select.tsx
index 1fb4cf8..0ea6a35 100644
--- a/src/components/form-create/components/use-api-select.tsx
+++ b/src/components/form-create/components/use-api-select.tsx
@@ -161,9 +161,9 @@
           parseOptions0(data);
           return;
         }
-        // 鎯呭喌涓夛細涓嶆槸 yudao-vue-pro 鏍囧噯杩斿洖
+        // 鎯呭喌涓夛細涓嶆槸鏍囧噯杩斿洖
         console.warn(
-          `鎺ュ彛[${props.url}] 杩斿洖缁撴灉涓嶆槸 yudao-vue-pro 鏍囧噯杩斿洖寤鸿閲囩敤鑷畾涔夎В鏋愬嚱鏁板鐞哷,
+          `鎺ュ彛[${props.url}] 杩斿洖缁撴灉涓嶆槸鏍囧噯杩斿洖寤鸿閲囩敤鑷畾涔夎В鏋愬嚱鏁板鐞哷,
         );
       }
 
@@ -246,6 +246,19 @@
           ...restAttrs
         } = attrs;
 
+        // 浜哄憳閫夋嫨鍣紙UserSelect锛夐粯璁ゅ紑鍚ā绯婃悳绱細鏀寔鎸夊鍚嶈緭鍏ヨ繃婊�
+        const searchProps =
+          option.name === 'UserSelect'
+            ? {
+                showSearch: true,
+                optionFilterProp: 'label',
+                filterOption: (input: string, opt: any) =>
+                  String(opt?.label ?? '')
+                    .toLowerCase()
+                    .includes(String(input).toLowerCase()),
+              }
+            : {};
+
         if (props.multiple) {
           // fix锛氬鍐欐姝ユ槸涓轰簡瑙e喅 multiple 灞炴�ч棶棰�
           return (
@@ -255,6 +268,7 @@
               mode="multiple"
               onUpdate:value={onUpdateModelValue as any}
               value={modelValue as any}
+              {...searchProps}
               {...restAttrs}
               // TODO @xingyu remote 瀵圭瓑瀹炵幇, 杩樻槸璇存病浣滅敤
               // remote={props.remote}
@@ -276,6 +290,7 @@
             loading={loading.value}
             onUpdate:value={onUpdateModelValue as any}
             value={modelValue as any}
+            {...searchProps}
             {...restAttrs}
             // TODO: @xingyu remote 瀵圭瓑瀹炵幇, 杩樻槸璇存病浣滅敤
             // remote={props.remote}

--
Gitblit v1.9.3