From c0b2ef980ecfcfcdf9b77c42b7112d61e4459ee2 Mon Sep 17 00:00:00 2001 From: boisduval Date: Thu, 30 Apr 2026 15:46:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20IconPicker=20?= =?UTF-8?q?=E5=9C=A8=E6=89=8B=E5=8A=A8=E8=BE=93=E5=85=A5=E6=97=B6=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=80=BC=E4=B8=8D=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#7869)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 IconPicker.vue 在 updateCurrentSelect 时未同步更新 modelValue 的 Bug - 优化 IconPicker 适配器配置,使其兼容 Element Plus 的 ElInput 组件 --- .../common-ui/src/components/icon-picker/icon-picker.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue b/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue index ba6dca977..3513f1f9b 100644 --- a/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue +++ b/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue @@ -147,6 +147,9 @@ const searchInputProps = computed(() => { function updateCurrentSelect(v: string) { currentSelect.value = v; + if (props.modelValueProp === 'modelValue') { + modelValue.value = v; + } const eventKey = `onUpdate:${props.modelValueProp}`; if (attrs[eventKey] && isFunction(attrs[eventKey])) { attrs[eventKey](v);