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.
23 lines
493 B
23 lines
493 B
|
2 months ago
|
<template>
|
||
|
|
<div class="sql-container">
|
||
|
|
<SQLCodeMirror v-if="activeColumnTab === 'proc'" :data="procStr" :dbType="dbType" />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup>
|
||
|
|
import { ref } from 'vue'
|
||
|
|
import SQLCodeMirror from '@/components/codemirror/SQLCodeMirror.vue'
|
||
|
|
|
||
|
|
const activeColumnTab = ref('proc')
|
||
|
|
const procStr = ref('SELECT * FROM users LIMIT 100;')
|
||
|
|
const dbType = ref('MYSQL')
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.sql-container {
|
||
|
|
padding: 16px;
|
||
|
|
background: #fafafa;
|
||
|
|
height: 100vh;
|
||
|
|
}
|
||
|
|
</style>
|