mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
820 B
28 lines
820 B
<script lang="ts" setup> |
|
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))"> |
|
<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>
|
|
|