svg-progress-bar icon indicating copy to clipboard operation
svg-progress-bar copied to clipboard

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

Open BOB262 opened this issue 6 years ago • 2 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'
      }
    }

BOB262 avatar Aug 21 '18 03:08 BOB262

+1

AIKE-Dereks avatar Jul 12 '19 16:07 AIKE-Dereks

+1

BugMyGod avatar Nov 18 '19 03:11 BugMyGod