Browse Source
docs: perfect Cascader api (#32291)
Co-authored-by: xc <xc@xcdeMacBook-Pro.local>
pull/32315/head
Dreamcreative
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
0 deletions
-
components/cascader/index.en-US.md
-
components/cascader/index.zh-CN.md
|
|
@ -48,6 +48,11 @@ Cascade selection box. |
|
|
|
| value | The selected value | string\[] \| number\[] | - | | |
|
|
|
| onChange | Callback when finishing cascader select | (value, selectedOptions) => void | - | | |
|
|
|
| onDropdownVisibleChange | Callback when popup shown or hidden | (value) => void | - | 4.17.0 | |
|
|
|
| multiple | Support multiple or not | boolean | - | | |
|
|
|
| searchValue | Set search value,Need work with `showSearch` | string | - | | |
|
|
|
| onSearch | The callback function triggered when input changed | (search: string) => void | - | | |
|
|
|
| dropdownMenuColumnStyle | The style of the drop-down menu column | CSSProperties | - | | |
|
|
|
| loadingIcon | The apparence of lazy loading (now is useless) | ReactNode | - | | |
|
|
|
|
|
|
|
### showSearch |
|
|
|
|
|
|
|
|
|
@ -49,6 +49,11 @@ cover: https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg |
|
|
|
| value | 指定选中项 | string\[] \| number\[] | - | | |
|
|
|
| onChange | 选择完成后的回调 | (value, selectedOptions) => void | - | | |
|
|
|
| onDropdownVisibleChange | 显示/隐藏浮层的回调 | (value) => void | - | 4.17.0 | |
|
|
|
| multiple | 支持多选节点 | boolean | - | | |
|
|
|
| searchValue | 设置搜索的值,需要与 `showSearch` 配合使用 | string | - | | |
|
|
|
| onSearch | 监听搜索,返回输入的值 | (search: string) => void | - | | |
|
|
|
| dropdownMenuColumnStyle | 下拉菜单列的样式 | CSSProperties | - | | |
|
|
|
| loadingIcon | 动态加载时的加载动画 (目前这个属性设置后不生效) | ReactNode | - | | |
|
|
|
|
|
|
|
### showSearch |
|
|
|
|
|
|
|