配置Charts地图

This commit is contained in:
GGJ
2023-12-29 11:50:53 +08:00
parent 9ea3660392
commit 24f193c2c7
46 changed files with 176205 additions and 190 deletions

View File

@@ -6,14 +6,12 @@
import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue'
import echarts from './echarts'
import 'echarts/lib/component/dataZoom'
const chartRef = ref<HTMLDivElement>()
const props = defineProps(['options'])
const chartRef = ref<HTMLDivElement>()
let chart: echarts.ECharts | null = null
const resizeHandler = () => {
setTimeout(() => {
chart?.resize()
}, 100)
}
const initChart = () => {
chart?.dispose()