Sfoglia il codice sorgente

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

wangzhe 2 anni fa
parent
commit
b23418147e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/datacenter.vue

+ 1 - 1
src/views/datacenter.vue

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