Browse Source
docs: update select tagRender props (#32173)
* fix(document): add select tagRender props declaration
* fix(document): change Only to only
pull/32177/head
Zuobin Wang
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
components/select/index.en-US.md
-
components/select/index.zh-CN.md
|
|
@ -61,7 +61,7 @@ Select component to select value from options. |
|
|
|
| showSearch | Whether show search input in single mode | boolean | false | | |
|
|
|
| size | Size of Select input | `large` \| `middle` \| `small` | `middle` | | |
|
|
|
| suffixIcon | The custom suffix icon | ReactNode | - | | |
|
|
|
| tagRender | Customize tag render | (props) => ReactNode | - | | |
|
|
|
| tagRender | Customize tag render, only applies when `mode` is set to `multiple` or `tags` | (props) => ReactNode | - | | |
|
|
|
| tokenSeparators | Separator used to tokenize on `tag` and `multiple` mode | string\[] | - | | |
|
|
|
| value | Current selected option (considered as a immutable array) | string \| string\[]<br />number \| number\[]<br />LabeledValue \| LabeledValue\[] | - | | |
|
|
|
| virtual | Disable virtual scroll when set to false | boolean | true | 4.1.0 | |
|
|
|
|
|
@ -62,7 +62,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg |
|
|
|
| showSearch | 使单选模式可搜索 | boolean | false | | |
|
|
|
| size | 选择框大小 | `large` \| `middle` \| `small` | `middle` | | |
|
|
|
| suffixIcon | 自定义的选择框后缀图标 | ReactNode | - | | |
|
|
|
| tagRender | 自定义 tag 内容 render | (props) => ReactNode | - | | |
|
|
|
| tagRender | 自定义 tag 内容 render,仅在 `mode` 为 `multiple` 或 `tags` 时生效 | (props) => ReactNode | - | | |
|
|
|
| tokenSeparators | 在 `tags` 和 `multiple` 模式下自动分词的分隔符 | string\[] | - | | |
|
|
|
| value | 指定当前选中的条目,多选时为一个数组。(value 数组引用未变化时,Select 不会更新) | string \| string\[]<br />number \| number\[]<br />LabeledValue \| LabeledValue\[] | - | | |
|
|
|
| virtual | 设置 false 时关闭虚拟滚动 | boolean | true | 4.1.0 | |
|
|
|