|
8 | 8 | | treeData | treeNode of tree, please use `treeNodes` before v1.1.4 | array | - |
|
9 | 9 | | autoExpandParent | Whether to automatically expand a parent treeNode | boolean | true |
|
10 | 10 | | checkable | Adds a `Checkbox` before the treeNodes | boolean | false |
|
11 |
| -| checkedKeys(v-model) | (Controlled) Specifies the keys of the checked treeNodes (PS: When this specifies the key of a treeNode which is also a parent treeNode, all the children treeNodes of will be checked; and vice versa, when it specifies the key of a treeNode which is a child treeNode, its parent treeNode will also be checked. When `checkable` and `checkStrictly` is true, its object has `checked` and `halfChecked` property. Regardless of whether the child or parent treeNode is checked, they won't impact each other. | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | |
| 11 | +| checkedKeys(v-model) | (Controlled) Specifies the keys of the checked treeNodes (PS: When this specifies the key of a treeNode which is also a parent treeNode, all the children treeNodes of will be checked; and vice versa, when it specifies the key of a treeNode which is a child treeNode, its parent treeNode will also be checked. When `checkable` and `checkStrictly` is true, its object has `checked` and `halfChecked` property. Regardless of whether the child or parent treeNode is checked, they won't impact each other. | string\[] \| number\[] \| {checked: string\[] \| number\[], halfChecked: string\[] \| number\[]} | \[] | |
12 | 12 | | checkStrictly | Check treeNode precisely; parent treeNode and children treeNodes are not associated | boolean | false |
|
13 |
| -| defaultCheckedKeys | Specifies the keys of the default checked treeNodes | string\[] | \[] | |
| 13 | +| defaultCheckedKeys | Specifies the keys of the default checked treeNodes | string\[] \| number\[] | \[] | |
14 | 14 | | defaultExpandAll | Whether to expand all treeNodes by default | boolean | false |
|
15 |
| -| defaultExpandedKeys | Specify the keys of the default expanded treeNodes | string\[] | \[] | |
| 15 | +| defaultExpandedKeys | Specify the keys of the default expanded treeNodes | string\[] \| number\[] | \[] | |
16 | 16 | | defaultExpandParent | auto expand parent treeNodes when init | bool | true |
|
17 |
| -| defaultSelectedKeys | Specifies the keys of the default selected treeNodes | string\[] | \[] | |
| 17 | +| defaultSelectedKeys | Specifies the keys of the default selected treeNodes | string\[] \| number\[] | \[] | |
18 | 18 | | disabled | whether disabled the tree | bool | false |
|
19 | 19 | | draggable | Specifies whether this Tree is draggable (IE > 8) | boolean | false |
|
20 |
| -| expandedKeys(.sync) | (Controlled) Specifies the keys of the expanded treeNodes | string\[] | \[] | |
| 20 | +| expandedKeys(.sync) | (Controlled) Specifies the keys of the expanded treeNodes | string\[] \| number\[] | \[] | |
21 | 21 | | filterTreeNode | Defines a function to filter (highlight) treeNodes. When the function returns `true`, the corresponding treeNode will be highlighted | function(node) | - |
|
22 | 22 | | loadData | Load data asynchronously | function(node) | - |
|
23 |
| -| loadedKeys | (Controlled) Set loaded tree nodes. Need work with `loadData` | string\[] | \[] | |
| 23 | +| loadedKeys | (Controlled) Set loaded tree nodes. Need work with `loadData` | string\[] \| number\[] | \[] | |
24 | 24 | | multiple | Allows selecting multiple treeNodes | boolean | false |
|
25 |
| -| selectedKeys(.sync) | (Controlled) Specifies the keys of the selected treeNodes | string\[] | - | |
| 25 | +| selectedKeys(.sync) | (Controlled) Specifies the keys of the selected treeNodes | string\[] \| number\[] | - | |
26 | 26 | | showIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to `true` | boolean | false |
|
27 | 27 | | showLine | Shows a connecting line | boolean | false |
|
28 | 28 |
|
@@ -54,7 +54,7 @@ One of the Tree `treeNode` prop for describing the tree's node, TreeNode has the
|
54 | 54 | | disabled | Disables the treeNode | boolean | false |
|
55 | 55 | | icon | customize icon. When you pass component, whose render will receive full TreeNode props as component props | slot\|slot-scope | - |
|
56 | 56 | | isLeaf | Determines if this is a leaf node(effective when `loadData` is specified) | boolean | false |
|
57 |
| -| key | Used with (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. P.S.: It must be unique in all of treeNodes of the tree! | string | internal calculated position of treeNode | |
| 57 | +| key | Used with (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. P.S.: It must be unique in all of treeNodes of the tree! | string \| number | internal calculated position of treeNode | |
58 | 58 | | selectable | Set whether the treeNode can be selected | boolean | true |
|
59 | 59 | | title | Title | string\|slot\|slot-scope | '---' |
|
60 | 60 | | slots | When using treeNodes, you can use this property to configure the properties that support the slot, such as `slots: { title: 'XXX'}` | object | - |
|
|
0 commit comments