Sfoglia il codice sorgente

show: this.source.length > 8 ? true : false,

王通 2 anni fa
parent
commit
8beaeec0af
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/views/datacenter.vue

+ 2 - 1
src/views/datacenter.vue

@@ -234,7 +234,8 @@ export default {
         },
         dataZoom: [
           {
-            show: true,
+            show: this.source.length > 8 ? true : false,
+            // show: true,
             type: "slider",
             yAxisIndex: 0,
             left: 0,