style(TemplateTree): 优化树形组件样式和配置

调整树形组件的滚动行为和显示样式,增加分隔线和紧凑模式
This commit is contained in:
zhanggy committed 2025-10-31 17:53:08 +08:00
1 parent e496aa59f4
commit 7bb9396c2a
1 file changed
+5 -2
+5 -2
View File
@@ -3,15 +3,18 @@
variant="outlined" variant="outlined"
class="pa-2" class="pa-2"
:height="height" :height="height"
style="overflow: auto;"
> >
<v-treeview <v-treeview
open-all open-all
:items="items" :items="items"
item-title="name" item-title="name"
item-key="id" item-value="id"
item-children="children"
open-on-click open-on-click
:hoverable="true" :hoverable="true"
:indent-lines="'default'"
separate-roots
density="compact"
> >
<template #prepend="{ item }"> <template #prepend="{ item }">
<v-icon <v-icon