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.
43 lines
1.1 KiB
43 lines
1.1 KiB
2 years ago
|
<script lang="ts" setup>
|
||
2 years ago
|
const props = defineProps<Props>()
|
||
|
|
||
|
const emits = defineEmits(['update:modelValue'])
|
||
|
|
||
2 years ago
|
const meta = inject(MetaInj)
|
||
2 years ago
|
|
||
|
interface Props {
|
||
|
modelValue: boolean
|
||
|
}
|
||
|
|
||
|
const vModel = useVModel(props, 'modelValue', emits)
|
||
|
|
||
|
const selectedView = inject(ActiveViewInj)
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
2 years ago
|
<a-modal
|
||
|
v-model:visible="vModel"
|
||
|
size="small"
|
||
|
:footer="null"
|
||
|
width="max(900px,60vw)"
|
||
|
:closable="false"
|
||
|
wrap-class-name="erd-single-table-modal"
|
||
2 years ago
|
transition-name="fade"
|
||
2 years ago
|
>
|
||
|
<div class="flex flex-row justify-between w-full items-center mb-1">
|
||
|
<a-typography-title class="ml-4 select-none" type="secondary" :level="5">
|
||
|
{{ `${$t('title.erdView')}: ${selectedView?.title}` }}
|
||
|
</a-typography-title>
|
||
|
|
||
|
<a-button type="text" class="!rounded-md border-none -mt-1.5 -mr-1" @click="vModel = false">
|
||
|
<template #icon>
|
||
|
<MdiClose class="cursor-pointer mt-1 nc-modal-close" />
|
||
|
</template>
|
||
|
</a-button>
|
||
|
</div>
|
||
|
<div class="w-full h-full !py-0 !px-2" style="height: 70vh">
|
||
|
<ErdView :table="meta" />
|
||
|
</div>
|
||
|
</a-modal>
|
||
2 years ago
|
</template>
|