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.
29 lines
815 B
29 lines
815 B
2 years ago
|
<script setup lang="ts">
|
||
|
const editorOpen = ref(false)
|
||
|
|
||
2 years ago
|
const tabKey = ref()
|
||
|
|
||
|
const { metas } = $(useMetas())
|
||
|
|
||
|
const { tables } = useTable()
|
||
|
|
||
|
const localTables = tables.value.filter((t) => metas[t.id as string])
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
2 years ago
|
<a-tooltip placement="bottom">
|
||
2 years ago
|
<template #title>
|
||
|
<span> Debug Meta </span>
|
||
|
</template>
|
||
|
<mdi-bug-outline class="cursor-pointer" @click="editorOpen = true" />
|
||
|
</a-tooltip>
|
||
|
|
||
2 years ago
|
<a-modal v-model:visible="editorOpen" :footer="null" width="80%">
|
||
|
<a-tabs v-model:activeKey="tabKey" type="card" closeable="false" class="shadow-sm">
|
||
|
<a-tab-pane v-for="table in localTables" :key="table.id" :tab="table.title">
|
||
|
<MonacoEditor v-model="metas[table.id]" class="h-max-[70vh]" :read-only="true" />
|
||
|
</a-tab-pane>
|
||
|
</a-tabs>
|
||
2 years ago
|
</a-modal>
|
||
|
</template>
|