<template>
  <div class="box">
    <div class="btn-groud">
      <el-button type="primary" plain @click="jump('/demo/table')">表格</el-button>
      <el-button type="primary" plain @click="jump('/demo/form')">表单</el-button>
      <el-button type="primary" plain @click="jump('/demo/moduleView')">moduleView</el-button>
    </div>
    <div class="main">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup>
  const router = useRouter();
  const jump = path => {
    console.log(path)
    router.push({ path: path });
  }
</script>

<style lang="scss" scoped>
.box{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  .btn-groud{
    height: 50px;
    display: flex;
    justify-items: center;
  }
  .main{
    height: calc(100% - 50px);
    width: 100%;
    overflow: auto;
  }
}
</style>