From 8cec3560141c7b1270b14fa558e406518c8290e9 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 17 Dec 2021 14:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E6=96=B0=E5=A2=9E=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=B6=20=20=E8=AE=A1=E7=AE=97=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/tools.js | 4 ++-- nezha-fronted/src/components/chart/chartList.vue | 13 +++++++++---- .../common/rightBox/chart/chartConfig.vue | 2 +- .../common/rightBox/chart/chartRightBox.vue | 9 +++++++++ .../common/rightBox/chart/systemChartConfig.vue | 2 +- nezha-fronted/src/store/panel.js | 12 +++++++++++- 6 files changed, 33 insertions(+), 9 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/tools.js b/nezha-fronted/src/components/chart/chart/tools.js index 3b87e3343..099a49b8a 100644 --- a/nezha-fronted/src/components/chart/chart/tools.js +++ b/nezha-fronted/src/components/chart/chart/tools.js @@ -134,8 +134,8 @@ export function getLayoutPosition (arr) { }) let maxX = 0 lastItem.forEach(last => { - if (maxX < last.x) { - maxX = last.x + if (maxX < last.x + last.span) { + maxX = last.x + last.span } }) return { diff --git a/nezha-fronted/src/components/chart/chartList.vue b/nezha-fronted/src/components/chart/chartList.vue index 7479ef0b4..7d196b35f 100644 --- a/nezha-fronted/src/components/chart/chartList.vue +++ b/nezha-fronted/src/components/chart/chartList.vue @@ -86,7 +86,7 @@