Browse Source

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

pull/5495/head
Netfan 12 months ago
committed by GitHub
parent
commit
d9799fec70
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      apps/web-antd/src/adapter/component/index.ts
  2. 8
      playground/src/adapter/component/index.ts

8
apps/web-antd/src/adapter/component/index.ts

@ -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,
);
},

8
playground/src/adapter/component/index.ts

@ -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,
);
},

Loading…
Cancel
Save