Skip to content

Commit

Permalink
fix: issue #34015 cascader document of option less isleaf param (#34174)
Browse files Browse the repository at this point in the history
* fix: issue #34015 cascader document of option less isleaf param

* fix: add comment

* fix: comment change

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
  • Loading branch information
LongHaoo and zengguhao.zgh committed Feb 24, 2022
1 parent 1c28ed3 commit 517ab4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/cascader/index.en-US.md
Expand Up @@ -75,6 +75,10 @@ interface Option {
label?: React.ReactNode;
disabled?: boolean;
children?: Option[];
// Determines if this is a leaf node(effective when `loadData` is specified).
// `false` will force trade TreeNode as a parent node.
// Show expand icon even if the current node has no children.
isLeaf?: boolean;
}
```

Expand Down
3 changes: 3 additions & 0 deletions components/cascader/index.zh-CN.md
Expand Up @@ -77,6 +77,9 @@ interface Option {
label?: React.ReactNode;
disabled?: boolean;
children?: Option[];
// 标记是否为叶子节点,设置了 `loadData` 时有效
// 设为 `false` 时会强制标记为父节点,即使当前节点没有 children,也会显示展开图标
isLeaf?: boolean;
}
```

Expand Down

0 comments on commit 517ab4c

Please sign in to comment.