瀏覽代碼

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

Netfan 1 月之前
父節點
當前提交
d9799fec70
共有 2 個文件被更改,包括 14 次插入2 次删除
  1. 7 1
      apps/web-antd/src/adapter/component/index.ts
  2. 7 1
      playground/src/adapter/component/index.ts

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

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