Skip to content

Commit 21cea9c

Browse files
committed
docs(table): only expand the first row to save room in tree data example
1 parent 576c727 commit 21cea9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/app/components/content/examples/table/TableTreeDataExample.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,16 @@ const columns: TableColumn<Payment>[] = [{
137137
return h('div', { class: 'text-right font-medium' }, formatted)
138138
}
139139
}]
140+
141+
const expanded = ref({ 0: true })
140142
</script>
141143

142144
<template>
143145
<UTable
146+
v-model:expanded="expanded"
144147
:data="data"
145148
:columns="columns"
146149
:get-sub-rows="row => row.children"
147-
expanded
148150
sticky
149151
class="flex-1 h-96"
150152
:ui="{

0 commit comments

Comments
 (0)