mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
4 changed files with 81 additions and 7 deletions
@ -1,11 +1,32 @@
|
||||
<script lang="ts" setup> |
||||
<script setup lang="ts"> |
||||
import useTabs from '~/composables/useTabs' |
||||
|
||||
const { tabs, activeTab, closeTab } = useTabs() |
||||
const tableCreateDialog = ref(false) |
||||
</script> |
||||
|
||||
<template> |
||||
<div> |
||||
<!-- <v-tabs v-model="activeTab" height="32" density="compact" color="primary"> |
||||
<v-tab v-for="(tab, i) in tabs" :key="i" :value="i" class="text-capitalize"> |
||||
{{ tab.title }} |
||||
<MdiCloseIcon class="ml-2 text-gray-500/50" @click.stop="closeTab(i)"></MdiCloseIcon> |
||||
</v-tab> |
||||
<MdiPlusIcon @click="tableCreateDialog = true" /> |
||||
<DlgTableCreate v-if="tableCreateDialog" v-model="tableCreateDialog" /> |
||||
</v-tabs> --> |
||||
|
||||
<a-tabs v-model:activeKey="activeTab" size="small" type="editable-card" @edit="closeTab"> |
||||
<a-tab-pane v-for="(tab, i) in tabs" :key="i" :tab="tab.title" /> |
||||
</a-tabs> |
||||
|
||||
<NuxtPage /> |
||||
<!-- <v-window v-model="activeTab"> |
||||
<v-window-item v-for="(tab, i) in tabs" :key="i" :value="i"> |
||||
<TabsSmartsheet :tab-meta="tab" /> |
||||
</v-window-item> |
||||
</v-window> --> |
||||
</div> |
||||
</template> |
||||
|
||||
<style scoped> |
||||
.nc-main-tab { |
||||
} |
||||
</style> |
||||
<style scoped></style> |
||||
|
@ -0,0 +1,9 @@
|
||||
<script> |
||||
export default { |
||||
name: 'Index', |
||||
} |
||||
</script> |
||||
|
||||
<template></template> |
||||
|
||||
<style scoped></style> |
Loading…
Reference in new issue