mirror of https://github.com/nocodb/nocodb
Muhammed Mustafa
1 year ago
4 changed files with 301 additions and 242 deletions
@ -1,9 +1,28 @@
|
||||
<script lang="ts" setup> |
||||
const { activeTable } = storeToRefs(useTablesStore()) |
||||
import { LoadingOutlined } from '@ant-design/icons-vue' |
||||
|
||||
const { activeTable, baseTables } = storeToRefs(useTablesStore()) |
||||
|
||||
const { openedProject } = storeToRefs(useBases()) |
||||
|
||||
const isDataLoaded = computed(() => { |
||||
return openedProject.value && baseTables.value.get(openedProject.value.id!) |
||||
}) |
||||
|
||||
const indicator = h(LoadingOutlined, { |
||||
style: { |
||||
fontSize: '2.5rem', |
||||
}, |
||||
spin: true, |
||||
}) |
||||
</script> |
||||
|
||||
<template> |
||||
<div class="flex flex-col p-4" style="height: calc(100vh - (var(--topbar-height) * 2))"> |
||||
<LazyErdView :table="activeTable" :source-id="activeTable?.source_id" :show-all-columns="false" /> |
||||
<div v-if="!isDataLoaded" class="h-full w-full flex flex-col justify-center items-center"> |
||||
<a-spin size="large" :indicator="indicator" /> |
||||
</div> |
||||
|
||||
<LazyErdView v-else :table="activeTable" :source-id="activeTable?.source_id" :show-all-columns="false" /> |
||||
</div> |
||||
</template> |
||||
|
Loading…
Reference in new issue