<template>
  <!-- 顶部标题 -->
  <div class="layout">
    <div class="content">
      <!-- <el-menu default-active="2" class="el-menu-vertical-demo" router>
        <el-menu-item index="/workFixture">
          <i class="el-icon-setting"></i>
          <span slot="title">工装夹具</span>
        </el-menu-item>
      </el-menu> -->
      <main>
        <router-view></router-view>
      </main>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
  name: "Layout",
  components: {},
});
</script>
<style scoped lang="scss">
.layout {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.title-top {
  background-color: #363636;
  // height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #e7e7e7;
}

.content {
  flex: 1;
  display: flex;
  main {
    flex: 1;
    background-color: #f5f9ff;
    padding: 10px 10px;
  }
}

.el-menu-vertical-demo {
  width: 140px;
}
</style>
