<template>
  <div class='default-main'>
    <el-tabs v-model='activeName' type='border-card'>
      <el-tab-pane label='终端状态管理' name='0'>
        <terminal v-if="activeName == '0'" />
      </el-tab-pane>
      <el-tab-pane label='监测点状态管理' name='1'>
        <monitor v-if="activeName == '1'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
import { mainHeight } from '@/utils/layout'
import terminal from './terminal.vue'
import monitor from './monitor.vue'

defineOptions({
  name: 'supervision/retire'
})
const activeName = ref('0')


const layout = mainHeight(63) as any
</script>

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

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