From 88f8dbd1fac30896f1ad6e19c5147ec549c0a4a4 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 13 Dec 2024 10:47:42 +0800 Subject: [PATCH] =?UTF-8?q?ExtApiCurve=20=E6=94=AF=E6=8C=81X,Y=E8=BD=B4?= =?UTF-8?q?=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ServiceConfigurationActionLog.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/ServiceConfigurationActionLog.vue b/src/components/ServiceConfigurationActionLog.vue index d449758..6c19919 100644 --- a/src/components/ServiceConfigurationActionLog.vue +++ b/src/components/ServiceConfigurationActionLog.vue @@ -108,7 +108,16 @@ async function handleLogChange() { xAxis: { type: response.xtype, axisLabel: { show: true } }, yAxis: { type: response.ytype, axisLabel: { show: true }, min: response.minY, max: response.maxY }, grid: { left: '3%', right: '4%', bottom: '3%', top: '3%', containLabel: true }, - dataZoom: [{ type: 'inside' }, { type: 'inside', orient: 'vertical' }], + dataZoom: [{ + type: 'slider', // 滑动条缩放 + show: true, + xAxisIndex: [0], // 只作用于x轴 + + }, { + type: 'slider', // 滑动条缩放 + show: true, + yAxisIndex: [0], // 只作用于y轴 + }], tooltip: { trigger: 'axis' }, series: [{ name: response.name,