diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index b981d6d0f9..f2ec3c219b 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -98,7 +98,7 @@ Common props ref:[Common props](/docs/react/common-props) | ~~popupClassName~~ | The className of dropdown menu, use `classNames.popup.root` instead | string | - | 4.23.0 | | popupMatchSelectWidth | Determine whether the popup menu and the select input are the same width. Default set `min-width` same as input. Will ignore when value less than select width. `false` will disable virtual scroll | boolean \| number | true | 5.5.0 | | ~~dropdownRender~~ | Customize dropdown content, use `popupRender` instead | (originNode: ReactNode) => ReactNode | - | | -| popupRender | Customize dropdown content | (originNode: ReactNode) => ReactNode | - | | +| popupRender | Customize dropdown content | (originNode: ReactNode) => ReactNode | - | 5.25.0 | | ~~dropdownStyle~~ | The style of dropdown menu, use `styles.popup.root` instead | CSSProperties | - | | | fieldNames | Customize node label, value, options,groupLabel field name | object | { label: `label`, value: `value`, options: `options`, groupLabel: `label` } | 4.17.0 (`groupLabel` added in 5.6.0) | | filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded | boolean \| function(inputValue, option) | true | | diff --git a/components/select/index.tsx b/components/select/index.tsx index ba9714a31f..ab3a802e8b 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -96,6 +96,9 @@ export interface SelectProps< popupMatchSelectWidth?: boolean | number; /** @deprecated Please use `popupRender` instead */ dropdownRender?: (menu: React.ReactElement) => React.ReactElement; + /** + * @since 5.25.0 + */ popupRender?: (menu: React.ReactElement) => React.ReactElement; /** @deprecated Please use `styles.popup.root` instead */ dropdownStyle?: React.CSSProperties; diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index 9f194f8c2f..14c165c6b2 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -100,7 +100,7 @@ return ( | ~~popupClassName~~ | 下拉菜单的 className 属性,使用 `classNames.popup.root` 替换 | string | - | 4.23.0 | | popupMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 | boolean \| number | true | 5.5.0 | | ~~dropdownRender~~ | 自定义下拉框内容,使用 `popupRender` 替换 | (originNode: ReactNode) => ReactNode | - | | -| popupRender | 自定义下拉框内容 | (originNode: ReactNode) => ReactNode | - | | +| popupRender | 自定义下拉框内容 | (originNode: ReactNode) => ReactNode | - | 5.25.0 | | ~~dropdownStyle~~ | 下拉菜单的 style 属性,使用 `styles.popup.root` 替换 | CSSProperties | - | | | fieldNames | 自定义节点 label、value、options、groupLabel 的字段 | object | { label: `label`, value: `value`, options: `options`, groupLabel: `label` } | 4.17.0(`groupLabel` 在 5.6.0 新增) | | filterOption | 是否根据输入项进行筛选。当其为一个函数时,会接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 true,反之则返回 false。[示例](#select-demo-search) | boolean \| function(inputValue, option) | true | |