Explorar o código

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

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