Merge pull request #1052 from dataease/pr@dev@fix_antv

fix: antv点击坐标
This commit is contained in:
XiaJunjie2020 2021-10-29 13:40:24 +08:00 committed by GitHub
commit 04c7a3c979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,8 +192,8 @@ export default {
if (this.trackMenu.length < 2) { // if (this.trackMenu.length < 2) { //
this.trackClick(this.trackMenu[0]) this.trackClick(this.trackMenu[0])
} else { // } else { //
this.trackBarStyle.left = param.clientX + 'px' this.trackBarStyle.left = param.x + 'px'
this.trackBarStyle.top = (param.clientY - 15) + 'px' this.trackBarStyle.top = (param.y - 15) + 'px'
this.$refs.viewTrack.trackButtonClick() this.$refs.viewTrack.trackButtonClick()
} }
}, },