mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
* 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>
This commit is contained in:
parent
1c28ed37fc
commit
517ab4c3ce
@ -75,6 +75,10 @@ interface Option {
|
|||||||
label?: React.ReactNode;
|
label?: React.ReactNode;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
children?: Option[];
|
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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -77,6 +77,9 @@ interface Option {
|
|||||||
label?: React.ReactNode;
|
label?: React.ReactNode;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
children?: Option[];
|
children?: Option[];
|
||||||
|
// 标记是否为叶子节点,设置了 `loadData` 时有效
|
||||||
|
// 设为 `false` 时会强制标记为父节点,即使当前节点没有 children,也会显示展开图标
|
||||||
|
isLeaf?: boolean;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user