<template>
<a-card title="数据源工具" style="min-height: 600px;">
  <a-row justify="space-between" :gutter="[8, 8]" style="min-height: 600px;">
    <a-col :span="3" >
      <a-card style="height: 100%;" >
        <a>数据查询</a>
      </a-card>
    </a-col>
    <a-col :span="21" >
      <a-card  style="height: 100%;"  >
        <div>
        <a-space>
          <a-button small type="link" :icon="h(RightCircleOutlined)" >执行</a-button>
        </a-space>
        </div>
        <div style="margin-top: 20px;border: 1px solid #c9c9c9;" >
          <code-mirror-tsx  style="width: 100%;" body-type="sql" :number-of-rows="20" />
        </div>
        <div class="execute-info" >
          <div class="title" >执行信息</div>
          <div class="execute-content" >
            <a-empty></a-empty>
          </div>
        </div>
      </a-card>
    </a-col>
  </a-row>
</a-card>
</template>
<script lang='ts' setup >
import { CodeMirrorTsx } from '@/components/CodeMirror/index'
import { h } from 'vue'
import { RightCircleOutlined } from '@ant-design/icons-vue'
</script>
<style lang='less' scoped >

.execute-info {
  margin-top: 10px;
  .title {
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    height: 50px;
    background-color: #f5f5f5;
    line-height: 50px;
    padding-left: 20px;
    border: 1px solid #f5f5f5;
  }
  .execute-content {
    margin-top: 20px;
  }
}

</style>
