<template>
  <el-tabs v-model="activeName">
    <el-tab-pane :lazy="true" label="本地数据" name="local">
      <Local v-if="activeName === 'local'" :active-name="activeName" />
    </el-tab-pane>
    <el-tab-pane :lazy="true" label="设备数据" name="device">
      <Device v-if="activeName === 'device'" :active-name="activeName" />
    </el-tab-pane>
  </el-tabs>
</template>

<script setup>
import { ref } from 'vue';
import Local from 'components/history/data-history.vue';
import Device from 'components/history/data-report.vue';

const activeName = ref('local');
</script>
