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

动态进度条无法使用 #12

Open
msterzhang opened this issue Apr 24, 2019 · 0 comments
Open

动态进度条无法使用 #12

msterzhang opened this issue Apr 24, 2019 · 0 comments

Comments

@msterzhang
Copy link

老哥你好 我想用你的项目实现一个动态上传的功能,但是进度条宽度一直不显示,我的代码是这样的!

<!--进度条-->
      <vm-progress :percentage="size" :text-inside="true" :stroke-width="25" strokeColor="purple" :striped="true"></vm-progress>
   
onUploadProgress: function (e) {
            var si = Math.round((e.loaded * 100) / e.total) || 0;
            if (si < 100) {
              this.size = si;
              console.log(si + '%');  // 上传进度
              console.log(this.size + 'dd%');  // 上传进度
            }
          }
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

1 participant