方法一(推荐):
.v-treeview-node__toggle + button.v-treeview-node__checkbox {
display: none !important;
}
参考:
https://stackoverflow.com/questions/60270592/vuetify-treeview-only-allow-children-to-be-selectable
方法二:
item-child="{
item: any,
leaf: boolean,
selected: boolean,
indeterminate: boolean,
active: boolean,
open: boolean
}"
评论区