<v-treeview
v-model="selection"
:search="search"
:active.sync="active"
:open="otkrytie"
dense selectable activatable hoverable
:items="treeitems"
item-disabled="locked"
color="warning"
selection-type="independent"
selected-color="red" />
data: () => ({
opened: [],
...
}),
watch: {
opened: {
immediate: true,
handler(val) {
const id = this.treeitems[0].id;
if (!val.includes(id)) {
val.push(id);
}
}
},
...
},
:open.sync="opened"