chenxuan0000 / svg-progress-bar

:panda_face: A simple,progress bar for Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

computed:options参数 如何动态更新?

BOB262 opened this issue · comments

自定义文本格式,是什么原因?

svgProgressOption () {
     let that = this
      return {
        radius: 40,
        circleWidth: this.circleWidthnum,  // 没变化
        circleLineCap: 'round',
        pathColors: ['#DDD', '#008FF3'],
        text: function (value) {
          console.log(that.AttendanceCounts)  // 获取的是原始数据,没有更新
          return '<span class="circles-num">' + that.AttendanceCounts + '/' + that.totalPeople + '</span><div class="circles-subtitle">出勤人数</div>'
        },
        textColor: '#008FF3'
      }
    }

+1