From d9799fec708f7e740f3decb6c4e6bc2645de13ae Mon Sep 17 00:00:00 2001 From: Netfan Date: Mon, 24 Feb 2025 14:13:53 +0800 Subject: [PATCH] fix: `search` take no effect in `icon-picker` with antd (#5592) --- apps/web-antd/src/adapter/component/index.ts | 8 +++++++- playground/src/adapter/component/index.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/adapter/component/index.ts b/apps/web-antd/src/adapter/component/index.ts index 17436a83..a541a845 100644 --- a/apps/web-antd/src/adapter/component/index.ts +++ b/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, ); }, diff --git a/playground/src/adapter/component/index.ts b/playground/src/adapter/component/index.ts index 6d6ef001..607130b3 100644 --- a/playground/src/adapter/component/index.ts +++ b/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, ); },