|
21 | 21 | | showCheckedStrategy | The way show selected item in box. **Default:** just show child nodes. **`TreeSelect.SHOW_ALL`:** show all checked treeNodes (include parent treeNode). **`TreeSelect.SHOW_PARENT`:** show checked treeNodes (just show parent treeNode). | enum { TreeSelect.SHOW_ALL, TreeSelect.SHOW_PARENT, TreeSelect.SHOW_CHILD } | TreeSelect.SHOW_CHILD |
|
22 | 22 | | showSearch | Whether to display a search input in the dropdown menu(valid only in the single mode) | boolean | false |
|
23 | 23 | | size | To set the size of the select input, options: `large` `small` | string | 'default' |
|
| 24 | +| suffixIcon | The custom suffix icon | VNode \| slot | - | |
24 | 25 | | treeCheckable | Whether to show checkbox on the treeNodes | boolean | false |
|
25 | 26 | | treeCheckStrictly | Whether to check nodes precisely (in the `checkable` mode), means parent and child nodes are not associated, and it will make `labelInValue` be true | boolean | false |
|
26 | 27 | | treeData | Data of the treeNodes, manual construction work is no longer needed if this property has been set(ensure the Uniqueness of each value) | array<{ value, label, children, [disabled, disableCheckbox, selectable] }> | \[] |
|
27 | 28 | | treeDataSimpleMode | Enable simple mode of treeData.(treeData should like this: [{id:1, pId:0, value:'1', label:"test1",...},...], pId is parent node's id) | false\|Array<{ id: string, pId: string, rootPId: null }> | false |
|
28 | 29 | | treeDefaultExpandAll | Whether to expand all treeNodes by default | boolean | false |
|
29 | 30 | | treeDefaultExpandedKeys | Default expanded treeNodes | string\[] | - |
|
| 31 | +| treeExpandedKeys | Set expanded keys | string\[] | - | |
30 | 32 | | treeNodeFilterProp | Will be used for filtering if `filterTreeNode` returns true | string | 'value' |
|
31 | 33 | | treeNodeLabelProp | Will render as content of select | string | 'title' |
|
32 | 34 | | value(v-model) | To set the current selected treeNode(s). | string\|string\[] | - |
|
33 |
| -| suffixIcon | The custom suffix icon | VNode \| slot | - | |
34 | 35 |
|
35 | 36 | ### Events
|
36 | 37 | | Events Name | Description | Arguments |
|
37 | 38 | | --- | --- | --- |
|
38 | 39 | | change | A callback function, can be executed when selected treeNodes or input value change | function(value, label, extra) |
|
39 | 40 | | search | A callback function, can be executed when the search input changes. | function(value: string) |
|
40 | 41 | | select | A callback function, can be executed when you select a treeNode. | function(value, node, extra) |
|
| 42 | +| treeExpand | A callback function, can be executed when treeNode expanded | function(expandedKeys) | |
41 | 43 |
|
42 | 44 | ### Tree Methods
|
43 | 45 |
|
|
52 | 54 |
|
53 | 55 | | Property | Description | Type | Default |
|
54 | 56 | | -------- | ----------- | ---- | ------- |
|
| 57 | +| selectable | can be selected | boolean | true | |
55 | 58 | | disableCheckbox | Disables the checkbox of the treeNode | boolean | false |
|
56 | 59 | | disabled | Disabled or not | boolean | false |
|
57 | 60 | | isLeaf | Leaf node or not | boolean | false |
|
|
0 commit comments