<!--
  Description: 首页
  Author: 李亚光
  Date: 2023-04-21
 -->
<script lang="ts" setup name="dashboard">
import guadmap from '@/components/map/index.vue'
const mainHeight = ref(document.body.clientHeight - 50)
window.addEventListener('resize', () => {
  const bodyHeight = document.body.clientHeight - 50
  mainHeight.value = bodyHeight
})
</script>

<template>
  <div :style="{ height: `${mainHeight}px` }">
    <!-- 地图 -->
    <guadmap />
    <!-- 按钮 -->
    <div class="btn">
      <el-button>
        智慧观碳
      </el-button>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.btn {
  position: absolute;
  right: 20px;
  top: 20px;
}
</style>
