From 8af3463668a40b9b99febb02e3b4e0d9d8d719b4 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 20 May 2025 01:11:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20aaWaf=E3=80=81cdnfly=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=94=AF=E6=8C=81=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/plugin-lib/src/common/util.ts | 3 ++ .../plugins/common/remote-select.vue | 44 ++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/packages/plugins/plugin-lib/src/common/util.ts b/packages/plugins/plugin-lib/src/common/util.ts index 9bf5e42b..d5a88b70 100644 --- a/packages/plugins/plugin-lib/src/common/util.ts +++ b/packages/plugins/plugin-lib/src/common/util.ts @@ -38,6 +38,7 @@ export function createRemoteSelectInputDefine(opts?: { required?: boolean; rules?: any; mergeScript?: string; + search?: boolean; }) { const title = opts?.title || "请选择"; const certDomainsInputKey = opts?.certDomainsInputKey || "certDomains"; @@ -47,6 +48,7 @@ export function createRemoteSelectInputDefine(opts?: { const type = opts?.type || "plugin"; const watches = opts?.watches || []; const helper = opts?.helper || "请选择"; + const search = opts?.search ?? false; let mode = "tags"; if (opts.multi === false) { mode = undefined; @@ -63,6 +65,7 @@ export function createRemoteSelectInputDefine(opts?: { type, typeName, action, + search, watches: [certDomainsInputKey, accessIdInputKey, ...watches], }, rules: opts?.rules, diff --git a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue index e6c0c7e1..2b564bcb 100644 --- a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue +++ b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue @@ -1,7 +1,26 @@