We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576c727 commit 0086659Copy full SHA for 0086659
docs/app/components/content/examples/table/TableTreeDataExample.vue
@@ -137,18 +137,21 @@ const columns: TableColumn<Payment>[] = [{
137
return h('div', { class: 'text-right font-medium' }, formatted)
138
}
139
}]
140
+
141
+const expanded = ref({ 0: true })
142
</script>
143
144
<template>
145
<UTable
146
+ v-model:expanded="expanded"
147
:data="data"
148
:columns="columns"
149
:get-sub-rows="row => row.children"
- expanded
150
sticky
- class="flex-1 h-96"
151
+ class="flex-1"
152
:ui="{
153
base: 'border-separate border-spacing-0',
154
+ tbody: '[&>tr]:last:[&>td]:border-b-0',
155
tr: 'group',
156
td: 'empty:p-0 group-has-[td:not(:empty)]:border-b border-default'
157
}"
0 commit comments