Explorar el Código

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

王通 hace 2 años
padre
commit
8beaeec0af
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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,