forked from github/dataease
fix(地图): 缩放功能异常
This commit is contained in:
parent
ef1774c730
commit
206125c444
@ -79,10 +79,19 @@ export default {
|
|||||||
this.chart.customAttr = JSON.stringify(this.customAttr)
|
this.chart.customAttr = JSON.stringify(this.customAttr)
|
||||||
},
|
},
|
||||||
callParent(methodName, param) {
|
callParent(methodName, param) {
|
||||||
this.$emit(methodName, param)
|
this.$emit(this.toLowerLine(methodName), param)
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
|
|
||||||
|
},
|
||||||
|
toLowerLine(str) {
|
||||||
|
var temp = str.replace(/[A-Z]/g, function(match) {
|
||||||
|
return '-' + match.toLowerCase()
|
||||||
|
})
|
||||||
|
if (temp.slice(0, 1) === '-') {
|
||||||
|
temp = temp.slice(1)
|
||||||
|
}
|
||||||
|
return temp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user