<template>
    <div class="default-main">
        <!-- <el-button :loading="$allVariables.butLoading ">123</el-button> -->
        <el-tabs v-model="activeName" type="border-card">
            <el-tab-pane label="终端在线率列表" name="1">
                <Table />
            </el-tab-pane>
            <el-tab-pane label="终端在线率图表" name="2">
                <Echart />
            </el-tab-pane>
            <!-- <el-tab-pane label="123" name="3">
                <aaa />
            </el-tab-pane> -->
        </el-tabs>
    </div>
</template>

<script setup lang="ts">
import { onMounted, reactive, ref, getCurrentInstance } from 'vue'

import { mainHeight } from '@/utils/layout'
import Table from './components/table.vue'
import Echart from './components/echart.vue'
import aaa from './components/123.vue'
defineOptions({
    name: 'harmonic-boot/area/OnlineRate'
})
const activeName = ref('1')

const layout = mainHeight(63) as any
// const { proxy } = getCurrentInstance()
// onMounted(() => {
//     setTimeout(() => {
//         proxy.$allVariables.butLoading = true
//         setTimeout(() => {
//         proxy.$allVariables.butLoading = false
//     }, 3000);
//     }, 3000);
// })
</script>

<style lang="scss" scoped>
.bars_w {
    width: 100%;
    height: 500px;
}

:deep(.el-tabs__content) {
    height: v-bind('layout.height');
    overflow-y: auto;
}
</style>
