(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3bfe"],{"0404":function(e,r,t){"use strict";t.r(r);var s=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",[0!=e.progressValue?t("el-progress",{key:1,attrs:{type:"circle",width:26,"stroke-width":3,percentage:e.progressValue,"show-text":!1}}):e._e()],1)},a=[],n={name:"progress-bar",props:{uploadStatus:{type:String,require:!0},fileSize:{type:Number,require:!0}},data:function(){return{progressValue:0}},computed:{progressBarSetp:function(){var e=Math.ceil(this.fileSize/1024/1024);return e<10?5:1},progressBarTimer:function(){return Math.ceil(this.fileSize/1024/1024)}},methods:{start:function(){var e=this;clearInterval(this.timer),this.timer=setInterval((function(){e.progressValue+=e.progressBarSetp,98===e.progressValue&&"success"!==e.uploadStatus&&clearInterval(e.timer),e.progressValue>=100&&clearInterval(e.timer),e.$emit("update",e.progressValue)}),this.progressBarTimer)},clear:function(){clearInterval(this.timer),this.progressValue=0}},watch:{uploadStatus:{handler:function(e){var r=this;if(e){var t={ready:function(){return r.start()},pending:function(){return r.start()},success:function(){return r.clear(!0)},error:function(){return r.clear()}};t[e]&&t[e]()}},immediate:!0}}},i=n,u=t("2877"),o=Object(u["a"])(i,s,a,!1,null,null,null);r["default"]=o.exports}}]);