Pārlūkot izejas kodu

统计图增加滚动条

wang_xy 2 gadi atpakaļ
vecāks
revīzija
56160db8f6
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      src/views/monitor.vue

+ 5 - 0
src/views/monitor.vue

@@ -285,6 +285,11 @@ export default {
           width: '75%',
           containLabel: true
         },
+        dataZoom: [{
+          type: 'inside',
+          start: 0,
+          end: this.sourceData.length > 15 ? 35 : 100
+        }],
         xAxis: {
           show: false,
           type: 'value'