提交 高低电压穿越 页面
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user