Skip to content

动态进度条无法使用 #12

@msterzhang

Description

@msterzhang

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions