<script setup lang="ts">
import {Plus} from "@element-plus/icons-vue";
import {Table} from "@/components/Table";
import useEmbedStore from './composables'
const { shema, columns, tableData } = useEmbedStore()
</script>

<template>
  <content-wrap>
    <Search :schema="shema"/>
  </content-wrap>
  <ContentWrap>
    <el-alert
      class="w-full mb-10px min-alert"
      title="注意：请慎重修改模型的向量纬度参数（Dimension），此参数需要和向量库匹配（错误修改可能将影响已有的向量数据）"
      type="info"
      show-icon
    />
    <el-button class="my-10px" type="primary" :icon="Plus">新增向量数据库</el-button>
    <Table height="cacl(100% - 400px)" border :columns="columns" :data="tableData.concat(tableData)" :pagination="false"/>
  </ContentWrap>
</template>

<style scoped lang="scss">

</style>
