fix: search take no effect in icon-picker with antd (#5592)

This commit is contained in:
Netfan 2025-02-24 14:13:53 +08:00 committed by GitHub
parent 4570d5b54b
commit d9799fec70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -125,7 +125,13 @@ async function initComponentAdapter() {
IconPicker: (props, { attrs, slots }) => { IconPicker: (props, { attrs, slots }) => {
return h( return h(
IconPicker, IconPicker,
{ iconSlot: 'addonAfter', inputComponent: Input, ...props, ...attrs }, {
iconSlot: 'addonAfter',
inputComponent: Input,
modelValueProp: 'value',
...props,
...attrs,
},
slots, slots,
); );
}, },

View File

@ -126,7 +126,13 @@ async function initComponentAdapter() {
IconPicker: (props, { attrs, slots }) => { IconPicker: (props, { attrs, slots }) => {
return h( return h(
IconPicker, IconPicker,
{ iconSlot: 'addonAfter', inputComponent: Input, ...props, ...attrs }, {
iconSlot: 'addonAfter',
inputComponent: Input,
modelValueProp: 'value',
...props,
...attrs,
},
slots, slots,
); );
}, },