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 @@