progress icon indicating copy to clipboard operation
progress copied to clipboard

动态进度条无法使用

Open msterzhang opened this issue 6 years ago • 0 comments

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

<!--进度条-->
      <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%');  // 上传进度
            }
          }

msterzhang avatar Apr 24 '19 12:04 msterzhang