Explorar o código

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

王通 %!s(int64=2) %!d(string=hai) anos
pai
achega
8beaeec0af
Modificáronse 1 ficheiros con 2 adicións e 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,