<template>
  <div class="gl-page-content-grey-full">
    <div class="content">

      <div class="page-title">
        <el-radio-group v-model="currentTab" @change="currentTabChangeFun">
          <el-radio-button label="存储统计" value="Storage statistics"></el-radio-button>
          <el-radio-button label="存储设置" value="Storage Settings"></el-radio-button>
          <el-radio-button label="文件管理" value="Document Management"></el-radio-button>
        </el-radio-group>
      </div>

      <div class="page-content">

        <storageStatistics v-if="currentTab === 'Storage statistics' "></storageStatistics>
        <storageSettings v-if="currentTab === 'Storage Settings' "></storageSettings>
        <documentManagement v-if="currentTab === 'Document Management' "></documentManagement>

      </div>

    </div>

  </div>
</template>

<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import storageStatistics from './components/storageStatistics/index.vue';
import storageSettings from './components/storageSettings/index.vue';
import documentManagement from './components/documentManagement/index.vue';

const currentTab = ref<any>('Storage statistics');

const currentTabChangeFun = () => {

  console.log(currentTab.value);

};

onMounted(async () => {

});
</script>

<style lang="scss" scoped>
.gl-page-content-grey-full {
  .content {
    height: 100%;
    height: 100%;
    background-color: #fff;
    padding: 10px;

    .page-title{
      width: 100%;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .page-content{
      width: 100%;
      height: calc(100% - 50px);
      overflow: auto;
    }

  }
}
</style>
