Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BOB262 opened this issue Aug 21, 2018 · 2 comments
Open

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

BOB262 opened this issue Aug 21, 2018 · 2 comments

Comments

@BOB262
Copy link

BOB262 commented Aug 21, 2018

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

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'
      }
    }
@AIKE-Dereks
Copy link

+1

1 similar comment
@BugMyGod
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants