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