From 3c9d1879e059d33a785c02b10f4d57fd2024b8d3 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期一, 28 四月 2025 15:57:36 +0800
Subject: [PATCH] 渲染echarts图优化
---
src/app/globals.css | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/app/globals.css b/src/app/globals.css
index 611ff50..546c47c 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -870,3 +870,28 @@
body:has(.echart-wrapper:has(+ .fullscreen-controls)) {
overflow: hidden;
}
+
+/* 褰诲簳鍥哄畾鍥捐〃瀹瑰櫒鐨勯珮搴� */
+[data-echarts-container="true"] {
+ height: 400px !important;
+ min-height: 400px !important;
+ width: 100%;
+ position: relative;
+}
+
+/* 纭繚tooltip鏄剧ず鍦ㄩ�傚綋浣嶇疆 */
+.echarts-tooltip-wrap,
+div[class*="echarts-tooltip"],
+div[class*="tooltip"] {
+ z-index: 9999 !important;
+ top: auto !important; /* 闃叉鍥哄畾鍦ㄩ《閮� */
+ transform: translateY(0) !important; /* 闃叉鍚戜笂鍋忕Щ */
+ max-width: 80vw !important; /* 闄愬埗鏈�澶у搴� */
+ pointer-events: auto !important;
+}
+
+/* 纭繚鐑姏鍥総ooltip鍦ㄩ珮椋庨櫓鍖哄煙鏄剧ず鏃朵笉浼氳瀵艰埅鏍忛伄鎸� */
+body .ec-tooltip,
+body .echarts-tooltip {
+ margin-top: 60px !important; /* 纭繚涓嶄細鏄剧ず鍦ㄥ鑸爮涔嬩笂 */
+}
--
Gitblit v1.9.3