From 47d28e8f7003568592a480b1b3ce962a85075ece Mon Sep 17 00:00:00 2001 From: Dreamcreative Date: Sat, 25 Sep 2021 16:59:51 +0800 Subject: [PATCH] docs: perfect Cascader api (#32291) Co-authored-by: xc --- components/cascader/index.en-US.md | 5 +++++ components/cascader/index.zh-CN.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index 7db69ddefd..d379b6fdb4 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.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 diff --git a/components/cascader/index.zh-CN.md b/components/cascader/index.zh-CN.md index 24a897e048..ec9a496e7a 100644 --- a/components/cascader/index.zh-CN.md +++ b/components/cascader/index.zh-CN.md @@ -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