Tree

Hierarchical tree control.

Tree

Code copied

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
node-key / label / childrenStringdata field namesMap node identity, label and child fields from custom tree data.id / label / children
default-checked-keys / default-expanded-keys / highlight-currentArray / Booleannode keys / true | falseConfigure initial selection, expansion and current-node highlighting.[] / [] / false
empty-text / indent / expand-on-click-nodeString / Number / Booleanempty copy / pixels / true | falseConfigure empty state text, nesting indent and expansion behavior.-
model-value/v-modelString | Numbernode keyCurrent node key.
dataArrayTreeNode[]Tree data; nodes support key, label, children and disabled.[]
show-checkboxBooleantrue / falseShow checkbox selection.false
check-strictlyBooleantrue / falseDisable parent/child check linkage.false
default-expand-allBooleantrue / falseExpand all nodes at initialization.false
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
nodeCustom node label. Receives node and depth.
No matching data

EVENTS

PropertyTypeValuesDescriptiondefaultExampleMore
node-click / node-expand / node-collapseNode interaction events.
update:checked-keys / check-changeCheckbox state events.
No matching data
Last Updated: 2026-08-17, 08:33:54