浏览代码

格式化

liyongli 3 年之前
父节点
当前提交
2daf6d76b8
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      components/pie/pie.js

+ 4 - 4
components/pie/pie.js

@@ -13,7 +13,7 @@ Component({
       type: String,
       value: "mychart-bar"
     },
-    showLegend:{
+    showLegend: {
       type: Boolean,
       value: true
     },
@@ -102,13 +102,13 @@ Component({
           show: this.data.showLegend,
           left: 'left',
           itemGap: 1,
-          itemWidth:4,
-          itemHeight:4,
+          itemWidth: 4,
+          itemHeight: 4,
           textStyle: {
             color: "#fff"
           }
         },
-        color: ["#dd79ff","#58d9f9"],
+        color: ["#4992ff", "#38f385", "#f45c64", "#58e0f4", "#0da17c", "#fc7b2e", "#8339df", "#f467f9", "#fddd60"],
         // color: colors,
         series: this.data.list || []
       };