<template>
  <el-row class="tac">
    <el-col :span="24">
      <h5 class="mb-2">DocumentAI Web Demo</h5>
      <el-menu
        class="el-menu-vertical-demo"
        default-active="1"
        @open="handleOpen"
        @close="handleClose"
      >
        <el-menu-item index="1" @click="routerJump('/')">
          <template #title>
            <el-icon><location /></el-icon>
            <span>Home Page</span>
          </template>
        </el-menu-item>
        <el-menu-item index="2" @click="routerJump('/magicColor')">
          <el-col :span="3">🔥</el-col>
          <span>图像锐化并增强</span>
        </el-menu-item>
        <el-menu-item index="3" @click="routerJump('/ocr')">
          <el-col :span="3">🔥</el-col>
          <span>OCR</span>
        </el-menu-item>
        <el-menu-item index="4" @click="routerJump('/tableRec')">
          <el-col :span="3">🔥</el-col>
          <span>通用表格识别</span>
        </el-menu-item>
        <el-menu-item index="5" @click="routerJump('/LayoutAnalysis')">
          <el-col :span="3">🔥</el-col>
          <span>版面分析</span>
        </el-menu-item>
        <el-menu-item index="6">
          <span></span>
        </el-menu-item>
        <el-menu-item index="7">
          <span></span>
        </el-menu-item>
        <el-menu-item index="8">
          <span></span>
        </el-menu-item>
        <el-menu-item index="9">
          <span></span>
        </el-menu-item>
      </el-menu>
    </el-col>
  </el-row>
  <el-tag size="large" style="position: absolute; bottom: 0%;">V 1.1.1</el-tag>
</template>

<style scoped lang="less">

</style>

<script lang="ts" setup>
import {
  Menu as IconMenu,
  Location,
} from '@element-plus/icons-vue'
import { routerJump } from "@/pages/main/utils/routerJump";

const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>
