微调
This commit is contained in:
@@ -34,7 +34,6 @@ const fetchConfig = async (name: string) => {
|
||||
// fetchConfig()
|
||||
|
||||
const emit = defineEmits(['getRegionByRegion', 'eliminate', 'clickMap'])
|
||||
onMounted(() => {})
|
||||
|
||||
const GetEchar = async (name: string) => {
|
||||
let chartDom = document.getElementById('chartMap')
|
||||
@@ -44,6 +43,7 @@ const GetEchar = async (name: string) => {
|
||||
name == dictData.state.area?.[0].name ? (showCircle.value = false) : (showCircle.value = true)
|
||||
|
||||
echarts.registerMap(name, await fetchConfig(name)) //注册可用的地图
|
||||
|
||||
let option = {
|
||||
title: {
|
||||
left: 'center',
|
||||
@@ -99,6 +99,7 @@ const GetEchar = async (name: string) => {
|
||||
// top: 10,
|
||||
// bottom: 0,
|
||||
roam: true,
|
||||
|
||||
label: {
|
||||
normal: {
|
||||
show: true,
|
||||
@@ -178,6 +179,7 @@ const GetEchar = async (name: string) => {
|
||||
}, 0)
|
||||
window.addEventListener('resize', resizeHandler)
|
||||
const flag1 = ref(true)
|
||||
|
||||
// 点击事件
|
||||
myCharts.value.off('click')
|
||||
myCharts.value.on('click', (e: any) => {
|
||||
|
||||
Reference in New Issue
Block a user