From 7adcf7f9401e25b83a5bb86fb7077086e0e89782 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 29 Nov 2022 13:59:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8antv=E7=8E=AF=E5=BD=A2=E5=9B=BE=E7=A9=BA?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E8=81=94=E5=8A=A8=E9=AB=98=E4=BA=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/deDrag/index.vue | 6 +++--- frontend/src/views/chart/components/ChartComponentG2.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/deDrag/index.vue b/frontend/src/components/deDrag/index.vue index 0c435cd329..032794c410 100644 --- a/frontend/src/components/deDrag/index.vue +++ b/frontend/src/components/deDrag/index.vue @@ -65,7 +65,7 @@ @mousedown.stop.prevent="handleDown(handlei, $event)" @touchstart.stop.prevent="handleTouchDown(handlei, $event)" > - +
- +
@@ -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 { diff --git a/frontend/src/views/chart/components/ChartComponentG2.vue b/frontend/src/views/chart/components/ChartComponentG2.vue index 8a0c54f0f0..8633394a71 100644 --- a/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/frontend/src/views/chart/components/ChartComponentG2.vue @@ -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() {