feat: 仪表盘分析页新增地理位置访问分析图表

This commit is contained in:
2024-11-04 21:12:58 +08:00
parent 89f763ae29
commit 798dda9440
8 changed files with 210315 additions and 215276 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,14 @@
<template>
<VCharts v-if="renderChart" :option="option" :autoresize="autoResize" :style="{ width, height }" ref="chart" />
<VCharts ref="chart" :option="option" :autoresize="autoResize" :style="{ width, height }" />
</template>
<script lang="ts" setup>
import { registerMap } from 'echarts/core';
import { nextTick, ref } from 'vue'
import { registerMap } from 'echarts/core'
import { ref } from 'vue'
import VCharts from 'vue-echarts'
import worldMap from './world.json'
import chinaMap from './china.json'
defineProps({
option: {
type: Object,
@@ -28,16 +29,13 @@ defineProps({
default: '100%',
},
})
registerMap('world', worldMap)
registerMap('china', chinaMap)
const renderChart = ref(false)
const chart = ref(null)
defineExpose({
chart
})
// wait container expand
nextTick(() => {
renderChart.value = true
chart,
})
</script>

File diff suppressed because it is too large Load Diff