码迷,mamicode.com
首页 > 其他好文 > 详细

class

时间:2018-06-01 19:11:54      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:for   val   each   class   point   style   IV   col   dia   

      class Point {
           constructor(item) {
              this.value = item.value;
              this.name = item.name;
              this.icon = ‘circle‘;
              this.percent = item.percent;
              this.itemStyle = {
                normal: {
                  color: item.itemStyle.normal.color
                }
              };
              this.selected = item.selected
            }
          }
          let mm = []
          tt.forEach((item) => {
            mm.push(new Point({
              value: item.itemCount,
              name: item.diagnoseName,
              percent: item.percent,
              selected: item.isTrue,
              icon : ‘circle‘,
              itemStyle: {
                normal: {
                  color: item.color
                }
              },
            }))
          })

 

class

标签:for   val   each   class   point   style   IV   col   dia   

原文地址:https://www.cnblogs.com/xuyan1/p/9122838.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!