Merge pull request #3927 from dataease/pr@dev@fix_linkage-show

fix(视图): 修复仪表antv环形图空标签联动高亮显示异常的问题
This commit is contained in:
Junjun 2022-11-29 14:13:07 +08:00 committed by GitHub
commit 1e4b95049b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -588,7 +588,7 @@ export default {
return 'auto'
}
}
if (this.element.auxiliaryMatrix) {
if (this.element.auxiliaryMatrix && this.curCanvasScaleSelf) {
const width = Math.round(this.width / this.curCanvasScaleSelf.matrixStyleWidth) * this.curCanvasScaleSelf.matrixStyleWidth
return (width - this.curGap * 2) + 'px'
} else {

View File

@ -202,7 +202,7 @@ export default {
})
},
checkSelected(param) {
return (this.linkageActiveParam.name.indexOf(param.name) > -1) &&
return (this.linkageActiveParam.name === param.name) &&
(this.linkageActiveParam.category === param.category)
},
preDraw() {