echarts世界地图
option配置
<template>
<div class="h-full w-full">
<Loadings :loading="loading" />
<div ref="chartRef" class="h-full w-full"></div>
</div>
</template>
<script lang="ts" setup>
import { registerMap } from 'echarts';
import { onActivated, ref, Ref, watch } from 'vue';
import { Loadings } from '/@/components/Loadings';
import { useECharts } from '/@/hooks/web/useECharts';
import { userDetailsStore } from '/@/store/modules/userDetails';
import echarts from '/@/utils/lib/echarts';
const mapType = 'world';
const loading = ref(true);
const chartRef = ref<HTMLDivElement | null>(null);
const { setOptions, resize } = useEChart