diff --git a/packages/field/src/demos/search-value.tsx b/packages/field/src/demos/search-value.tsx index 7c8751888928..7a5ad94491be 100644 --- a/packages/field/src/demos/search-value.tsx +++ b/packages/field/src/demos/search-value.tsx @@ -61,7 +61,7 @@ export default function App() { label: 'l', options: 'options', }, - showArrow: false, + suffixIcon: null, showSearch: true, // 使单选模式可搜索 popupMatchSelectWidth: false, optionFilterProp: 'label', // 搜索时过滤对应的 option 属性 diff --git a/packages/field/src/demos/tree-select-search-value.tsx b/packages/field/src/demos/tree-select-search-value.tsx index 4b8bcbfd8d17..0ee9beda702e 100644 --- a/packages/field/src/demos/tree-select-search-value.tsx +++ b/packages/field/src/demos/tree-select-search-value.tsx @@ -85,7 +85,7 @@ export default function App() { return treeData; }} fieldProps={{ - showArrow: false, + suffixIcon: null, filterTreeNode: true, showSearch: true, // 使单选模式可搜索 popupMatchSelectWidth: false, @@ -114,7 +114,7 @@ export default function App() { secondary fieldProps={{ treeData, - showArrow: false, + suffixIcon: null, filterTreeNode: true, showSearch: true, // 使单选模式可搜索 popupMatchSelectWidth: false, diff --git a/packages/form/src/components/FieldSet/index.en-US.md b/packages/form/src/components/FieldSet/index.en-US.md index c6d553f8b27d..067b53a004f9 100644 --- a/packages/form/src/components/FieldSet/index.en-US.md +++ b/packages/form/src/components/FieldSet/index.en-US.md @@ -424,7 +424,7 @@ Same as [tree-select](https://ant.design/components/tree-select/). Both request }} // tree-select args fieldProps={{ - showArrow: false, + suffixIcon: null, filterTreeNode: true, showSearch: true, dropdownMatchSelectWidth: false, diff --git a/packages/form/src/components/FieldSet/index.md b/packages/form/src/components/FieldSet/index.md index 76807a57698d..bd5dde6314f3 100644 --- a/packages/form/src/components/FieldSet/index.md +++ b/packages/form/src/components/FieldSet/index.md @@ -376,7 +376,7 @@ ProFormCaptcha 是为了支持中后台中常见的验证码功能开发的组 }} // tree-select args fieldProps={{ - showArrow: false, + suffixIcon: null filterTreeNode: true, showSearch: true, popupMatchSelectWidth: false, diff --git a/packages/form/src/components/Select/index.tsx b/packages/form/src/components/Select/index.tsx index 743ee9272aba..2bf17640f801 100644 --- a/packages/form/src/components/Select/index.tsx +++ b/packages/form/src/components/Select/index.tsx @@ -114,7 +114,7 @@ const SearchSelect = React.forwardRef>( mode: (mode as 'multiple') || 'multiple', labelInValue: true, showSearch: true, - showArrow: false, + suffixIcon: null, autoClearSearchValue: true, optionLabelProp: 'label', ...fieldProps, diff --git a/tests/__snapshots__/doc.test.ts.snap b/tests/__snapshots__/doc.test.ts.snap index 3d9652f6568e..303a6ef38247 100644 --- a/tests/__snapshots__/doc.test.ts.snap +++ b/tests/__snapshots__/doc.test.ts.snap @@ -1331,7 +1331,7 @@ exports[`docs/components demos > 📸 renders ./docs/components/valueType.tsx co class="ant-form-item-control-input-content" > @@ -4872,7 +4866,7 @@ exports[`field demos > 📸 renders ./packages/field/src/demos/tree-select-searc class="ant-spin-container" > -