<template>
  <div class="layout-content">
    <div class="layout-body">
      <div class="layout-head">
        <Head />
      </div>
      <div class="layout-page">
        <RouterView />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Head from '@/components/layout/head.vue';
</script>

<style lang="scss" scoped>
.layout-content {
  width: 100%;
  height: 100%;
  display: flex;
  .layout-body {
    flex: 1;
    width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    .layout-head {
      width: 100%;
      height: 60px;
    }
    .layout-page {
      flex: 1;
      width: 100%;
      height: 100%;
      overflow-y: auto;
      background-color: var(--el-bg-color-page);
      padding: 16px;
    }
  }
}
</style>
