From c66e5f9fcdbaf5c0adf237d465968d1ba28640ed Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 17 Mar 2026 13:54:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20remote-select=20mode=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=E5=9B=9E=E5=8E=9F=E6=9D=A5=E7=9A=84=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/plugin-lib/src/common/util.ts | 11 +++++----- .../plugins/common/remote-select.vue | 22 +++++++++++-------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/packages/plugins/plugin-lib/src/common/util.ts b/packages/plugins/plugin-lib/src/common/util.ts index 61a5a7019..7cc889133 100644 --- a/packages/plugins/plugin-lib/src/common/util.ts +++ b/packages/plugins/plugin-lib/src/common/util.ts @@ -54,13 +54,11 @@ export function createRemoteSelectInputDefine(opts?: { const helper = opts?.helper || "请选择"; const search = opts?.search ?? false; const pager = opts?.pager ?? false; - let mode = "tags"; - if (opts.multi === false) { - mode = undefined; - } else { - mode = opts?.mode ?? "tags"; + let mode = "default"; + const multi = opts?.multi ?? true; + if (multi) { + mode = "tags"; } - const item = { title, component: { @@ -72,6 +70,7 @@ export function createRemoteSelectInputDefine(opts?: { action, search, pager, + multi, watches: [certDomainsInputKey, accessIdInputKey, ...watches], ...opts.component, }, 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 4f30133cc..5782c54d9 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,7 @@