Browse Source
fix: `search` take no effect in `icon-picker` with antd (#5592)
pull/5495/head
Netfan
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
14 additions and
2 deletions
-
apps/web-antd/src/adapter/component/index.ts
-
playground/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, |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -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, |
|
|
|
); |
|
|
|
}, |
|
|
|
|