提交 高低电压穿越 页面

This commit is contained in:
GGJ
2024-08-22 11:39:47 +08:00
parent 760a7d9c5c
commit 439310e971
8 changed files with 201 additions and 2507 deletions

View File

@@ -165,12 +165,19 @@ const GetEchar = async (name: string) => {
}
myCharts.value.setOption(option)
window.addEventListener('resize', resizeHandler)
const flag1 = ref(true)
// 点击事件
myCharts.value.off('click')
myCharts.value.on('click', (e: any) => {
if (props.options.geo3D) {
emit('clickMap', e)
// emit('clickMap', e)
if (flag1.value) {
flag1.value = false
setTimeout(() => {
emit('clickMap', e)
flag1.value = true
}, 100)
}
} else {
// if (name == dictData.state.area?.[0].name && e.componentIndex == 0) {
if (name == '中国' && e.componentIndex == 0) {

View File

@@ -46,6 +46,11 @@ export default {
wp: {
type: [Object, Array],
},
height: {
type: [String,Number],
default: false,
},
},
data() {
return {
@@ -93,6 +98,8 @@ export default {
created() {
if (this.flag == 1) {
this.vh = mainHeight(165).height
}else if( this.height != false){
this.vh = this.height
} else {
this.vh = mainHeight(165,2).height
}