From e895212fa4215c50ce79ce4b448e064caf394776 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 03 七月 2025 17:35:46 +0800
Subject: [PATCH] 2025.7.3 动态溯源(待完成)

---
 src/components/chart/RealTimeLineChart.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/components/chart/RealTimeLineChart.vue b/src/components/chart/RealTimeLineChart.vue
index a66e2ac..cc72183 100644
--- a/src/components/chart/RealTimeLineChart.vue
+++ b/src/components/chart/RealTimeLineChart.vue
@@ -22,9 +22,15 @@
       //   };
       // }
     },
+    // 鎶樼嚎鍥惧睍绀洪珮搴�
     chartHeight: {
       type: String,
       default: '140px'
+    },
+    // 鎶樼嚎鍥綴杞村埢搴﹂棿璺�
+    yMinInterval: {
+      type: Number,
+      default: 1
     }
   },
   data() {
@@ -45,7 +51,7 @@
     refreshChart() {
       const { xAxis, series } = this.modelValue;
       if (!this.option) {
-        this.option = smallLineOption(xAxis, series);
+        this.option = smallLineOption(xAxis, series, this.yMinInterval);
       } else {
         this.option.xAxis[0].data = xAxis;
         this.option.series = series;

--
Gitblit v1.9.3