From 75a10e3537e5ed7fcdfcd0fc9885ed72148c695e Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 25 Mar 2020 12:12:36 +0800 Subject: [PATCH] docs: Update dropdownMatchSelectWidth doc desc --- components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 2 +- components/tree-select/index.en-US.md | 2 +- components/tree-select/index.zh-CN.md | 2 +- docs/react/migration-v4.en-US.md | 1 - docs/react/migration-v4.zh-CN.md | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index a034c12b2c..04d54b6d7a 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -30,7 +30,7 @@ Select component to select value from options. | defaultValue | Initial selected option. | string\|string\[]
number\|number\[]
LabeledValue\|LabeledValue[] | - | | | disabled | Whether disabled select | boolean | false | | | dropdownClassName | className of dropdown menu | string | - | | -| dropdownMatchSelectWidth | Whether dropdown's width is same with select. | boolean | true | | +| dropdownMatchSelectWidth | Whether dropdown's width is same with select. | boolean \| number | true | | | dropdownRender | Customize dropdown content | (menuNode: ReactNode, props) => ReactNode | - | | | dropdownStyle | style of dropdown menu | object | - | | | dropdownMenuStyle | additional style applied to dropdown menu | object | - | | diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index b367cf7618..c10e363aa5 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -31,7 +31,7 @@ title: Select | defaultValue | 指定默认选中的条目 | string\|string\[]\
number\|number\[]\
LabeledValue\|LabeledValue[] | - | | | disabled | 是否禁用 | boolean | false | | | dropdownClassName | 下拉菜单的 className 属性 | string | - | | -| dropdownMatchSelectWidth | 下拉菜单和选择器同宽 | boolean | true | | +| dropdownMatchSelectWidth | 下拉菜单和选择器同宽 | boolean \| number | true | | | dropdownRender | 自定义下拉框内容 | (menuNode: ReactNode, props) => ReactNode | - | | | dropdownStyle | 下拉菜单的 style 属性 | object | - | | | dropdownMenuStyle | dropdown 菜单自定义样式 | object | - | | diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index dec6a35ce3..92e69a7bce 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -22,7 +22,7 @@ Tree selection control. | defaultValue | To set the initial selected treeNode(s). | string\|string\[] | - | | | disabled | Disabled or not | boolean | false | | | dropdownClassName | className of dropdown menu | string | - | | -| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. | boolean | true | | +| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. | boolean \| number | true | | | dropdownStyle | To set the style of the dropdown menu | object | - | | | filterTreeNode | Whether to filter treeNodes by input value. The value of `treeNodeFilterProp` is used for filtering by default. | boolean\|Function(inputValue: string, treeNode: TreeNode) (should return boolean) | Function | | | getPopupContainer | To set the container of the dropdown menu. The default is to create a `div` element in `body`, you can reset it to the scrolling area and make a relative reposition. [example](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index 25fead9295..ab480aa17f 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -23,7 +23,7 @@ title: TreeSelect | defaultValue | 指定默认选中的条目 | string/string\[] | - | | | disabled | 是否禁用 | boolean | false | | | dropdownClassName | 下拉菜单的 className 属性 | string | - | | -| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`。 | boolean | true | | +| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`。 | boolean \| number | true | | | dropdownStyle | 下拉菜单的样式 | object | - | | | filterTreeNode | 是否根据输入项进行筛选,默认用 treeNodeFilterProp 的值作为要筛选的 TreeNode 的属性值 | boolean\|Function(inputValue: string, treeNode: TreeNode) (函数需要返回 bool 值) | Function | | | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | () => document.body | | diff --git a/docs/react/migration-v4.en-US.md b/docs/react/migration-v4.en-US.md index 5b36c48d02..07e2c896db 100644 --- a/docs/react/migration-v4.en-US.md +++ b/docs/react/migration-v4.en-US.md @@ -120,7 +120,6 @@ const Demo = () => ( - Tree, Select, TreeSelect, AutoComplete rewrite - use virtual scrolling. - `onBlur` no longer trigger value change. - - `dropdownMatchSelectWidth={false}` will no longer automatically adapt dropdown to the content width, please set the dropdown width with numbers. - AutoComplete no longer support `optionLabelProp`. Please set Option `value` directly. - The Grid component uses flex layout. - Button's `danger` is now treated as a property instead of a button type. diff --git a/docs/react/migration-v4.zh-CN.md b/docs/react/migration-v4.zh-CN.md index 40b4c138f7..9d03eb1b07 100644 --- a/docs/react/migration-v4.zh-CN.md +++ b/docs/react/migration-v4.zh-CN.md @@ -120,7 +120,6 @@ const Demo = () => ( - Tree、Select、TreeSelect、AutoComplete 重新写 - 使用虚拟滚动。 - `onBlur` 时不再修改选中值。 - - `dropdownMatchSelectWidth={false}` 时下拉菜单不再会自动适应内容宽度,请用数字设置下拉宽度。 - AutoComplete 不再支持 `optionLabelProp`,请直接设置 Option `value` 属性。 - Grid 组件使用 flex 布局。 - Button 的 `danger` 现在作为一个属性而不是按钮类型。