<template>
  <div class="layout-padding">
    <div class="layout-padding-auto layout-padding-view">
      <el-tabs v-model="activeName">
        <el-tab-pane label="申请列表" name="first">
          <List />
        </el-tab-pane>
        <el-tab-pane label="申请汇总" name="second">
          <DormAnalysis />
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script setup lang="ts" name="studorm">
import { ref, defineAsyncComponent } from 'vue'

const List = defineAsyncComponent(() => import('./list.vue'))
const DormAnalysis = defineAsyncComponent(() => import('./dorm_analysis.vue'))

// 响应式数据
const activeName = ref('first')
</script>

<style lang="scss" scoped>
:deep(.el-tabs) {
  height: 100%;
  display: flex;
  flex-direction: column;
  
  .el-tabs__content {
    flex: 1;
    overflow: auto;
  }
}
</style>
