|
|
|
@ -7,17 +7,17 @@ const { addTab } = useTabs()
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<v-list> |
|
|
|
|
<v-list-item |
|
|
|
|
<div class="nc-treeview-container flex flex-column"> |
|
|
|
|
<a-menu> |
|
|
|
|
<a-menu-item |
|
|
|
|
v-for="table in tables" |
|
|
|
|
:key="table.id" |
|
|
|
|
class="p-2 text-sm pointer" |
|
|
|
|
@click="addTab({ type: 'table', title: table.title, id: table.id })" |
|
|
|
|
> |
|
|
|
|
{{ table.title }} |
|
|
|
|
</v-list-item> |
|
|
|
|
</v-list> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -25,4 +25,8 @@ const { addTab } = useTabs()
|
|
|
|
|
.pointer { |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.nc-treeview-container { |
|
|
|
|
height: calc(100vh - var(--header-height)); |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|