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
2 changed files with 14 additions and 2 deletions

View File

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

View File

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