svg-progress-bar
svg-progress-bar copied to clipboard
computed:options参数 如何动态更新?
自定义文本格式,是什么原因?
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
+1