From 30cf71affd5149a1310d84f658b028d267beee8b Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 11 六月 2025 17:30:22 +0800 Subject: [PATCH] 动态溯源(编写中) --- src/components/chart/RealTimeLineChart.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/chart/RealTimeLineChart.vue b/src/components/chart/RealTimeLineChart.vue index 7a2ea1d..a66e2ac 100644 --- a/src/components/chart/RealTimeLineChart.vue +++ b/src/components/chart/RealTimeLineChart.vue @@ -1,6 +1,10 @@ <template> <div class="chart-wrap"> - <div ref="lineChart" class="line-chart"></div> + <div + ref="lineChart" + class="line-chart" + :style="'height:' + chartHeight + ';'" + ></div> </div> </template> <script> @@ -17,6 +21,10 @@ // series: [] // }; // } + }, + chartHeight: { + type: String, + default: '140px' } }, data() { @@ -72,7 +80,7 @@ } .line-chart { width: 318px; - height: 140px; + /* height: 140px; */ /* border-bottom: 1px solid rgba(255, 255, 255, 0.329); */ } </style> -- Gitblit v1.9.3