[bug report] the props document of tree component does not match the. D.ts definition file
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.0
### OS/Browsers version
window 10, chrome 88
### Vue version
2.6.12
### Reproduction Link
https://jsfiddle.net/mmx38qxb/
### Steps to reproduce
在项目的 tree.d.ts中,有如下定义
export interface TreeProps {
label: string;
disabled: string;
isLeaf: string;
children: string;
}
而在element文档中的定义如下
参数|说明|类型|
:-|:-|:-
label|指定节点标签为节点对象的某个属性值|string, function(data, node)
disabled|指定节点选择框是否禁用为节点对象的某个属性值|boolean, function(data, node)
isLeaf|指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效|boolean, function(data, node)
其中,关于label,isLeaf,children的ts定义和文档描述不一致。如果用ts构建项目出现错误
### What is Expected?
能正确的描述类型
### What is actually happening?
tree.d.ts不能正确的描述类型
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.