# Tree
Present information in a clear hierarchy that can be expanded or collapsed
# basic
The basic tree structure is shown
Copy
# Multiple Choices(checkbox)
Set the attribute show-checkbox to check data. To check data, multiple must be enabled
Copy
# Multiple Choices
Setting the multiple attribute enables tree selection with multiple selections
Copy
# Attributes
param | explain | type | default |
---|---|---|---|
show-checkbox | Whether to display multiple boxes | boolean | false |
multiple | Whether alternative | Boolean | false |
data | tree data | Array | -- |
childrenKey | The name of the data neutron node | String | 'children' |
v-width | Tree Indicates the width of the selector | String | '240px' |
defaultLabel | The value of the default radio option | String | '' |
defaultCheckList | Default multiple values | Array | [] |
# Event
event | explain | return |
---|---|---|
onChange | the selected value changes | selected value |