From 27d052fddb0ac60846363d4bac983be628f14ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Sun, 17 Aug 2025 17:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E8=A7=A3=E7=A0=81=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E8=A1=A8=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/emotionDecod.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/components/emotionDecod.vue b/src/views/components/emotionDecod.vue index 5c2008d..b104f0c 100644 --- a/src/views/components/emotionDecod.vue +++ b/src/views/components/emotionDecod.vue @@ -91,15 +91,21 @@ function initQXNLZHEcharts(kline, qxnlzhqData) { grid: [ { top: "5%", - height: window.innerWidth <= 768 ? "30%" : "40%" + height: window.innerWidth <= 768 ? "35%" : "40%", + width: window.innerWidth <= 768 ? "70%" : "80%", + left: window.outerWidth <= 768 ? "20%" : "10%", }, { - top: window.innerWidth <= 768 ? "35%" :"45%", - height: "35%" + top: window.innerWidth <= 768 ? "40%" :"45%", + height: "35%", + width: window.innerWidth <= 768 ? "70%" : "80%", + left: window.outerWidth <= 768 ? "20%" : "10%", }, { - top: window.innerWidth <= 768 ? "70%" : "80%", + top: window.innerWidth <= 768 ? "75%" : "80%", height: "2%", + width: window.innerWidth <= 768 ? "70%" : "80%", + left: window.outerWidth <= 768 ? "20%" : "10%", }, ], @@ -286,7 +292,7 @@ function initQXNLZHEcharts(kline, qxnlzhqData) { }, start: 50, // 默认展示后半部分数据 end: 100, - bottom: "8%", // 下移数据缩放滑块 + bottom: window.innerWidth <= 768 ? "5%" : "7%", // 下移数据缩放滑块 }, // { // show: true, @@ -512,7 +518,7 @@ onBeforeUnmount(() => { @media only screen and (max-width: 768px) { .qxjmqEcharts { width: 100%; - height: 400px; + height: 270px; margin: 0; /* top: 5rem; */ }