Parcourir la source

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

wangzhe il y a 2 ans
Parent
commit
b23418147e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,