mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
docs: perfect Cascader api (#32291)
Co-authored-by: xc <xc@xcdeMacBook-Pro.local>
This commit is contained in:
parent
46368874c2
commit
47d28e8f70
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user