From ac53f7b7d39fcb86df50e5ca44cbe63745fab45d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 30 Mar 2022 17:45:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AE=BD=E5=BA=A6=20=E5=BC=95=E8=B5=B7=E9=87=8D?= =?UTF-8?q?=E5=8F=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/chart/chartRightBox.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index eaab25dbf..48aa7572f 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -242,6 +242,10 @@ export default { params.x = this.chartLastPosition.x + params.span > 12 ? 0 : this.chartLastPosition.x params.y = this.chartLastPosition.y + 12 } + if (params.x + params.span > 12) { + params.x = 0 + params.y += 1 + } delete params.panel if (params.type === 'table') { delete params.param.tags