(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-circle-progress/u-circle-progress"],{"2bdb":function(t,e,r){"use strict";r.r(e);var n=r("db32"),i=r("5bed");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("c484");var s,c=r("f0c5"),a=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"5e10182b",null,!1,n["a"],s);e["default"]=a.exports},"5bed":function(t,e,r){"use strict";r.r(e);var n=r("d080"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c484:function(t,e,r){"use strict";var n=r("ca7b"),i=r.n(n);i.a},ca7b:function(t,e,r){},d080:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-circle-progress",props:{percent:{type:Number,default:0,validator:function(t){return t>=0&&t<=100}},inactiveColor:{type:String,default:"#ececec"},activeColor:{type:String,default:"#19be6b"},borderWidth:{type:[Number,String],default:14},width:{type:[Number,String],default:200},duration:{type:[Number,String],default:0},type:{type:String,default:""},bgColor:{type:String,default:"#ffffff"}},data:function(){return{elBgId:"uCircleProgressBgId",elId:"uCircleProgressElId",widthPx:t.upx2px(this.width),borderWidthPx:t.upx2px(this.borderWidth),startAngle:-Math.PI/2,progressContext:null,newPercent:0,oldPercent:0}},watch:{percent:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>100&&(t=100),t<0&&(r=0),this.newPercent=t,this.oldPercent=r,setTimeout((function(){e.drawCircleByProgress(r)}),0)}},created:function(){this.newPercent=this.percent,this.oldPercent=0},computed:{circleColor:function(){return this.activeColor}},mounted:function(){var t=this;setTimeout((function(){t.drawProgressBg(),t.drawCircleByProgress(t.oldPercent)}),50)},methods:{drawProgressBg:function(){var e=t.createCanvasContext(this.elBgId,this);e.setLineWidth(this.borderWidthPx),e.setStrokeStyle(this.inactiveColor),e.beginPath();var r=this.widthPx/2;e.arc(r,r,r-this.borderWidthPx,0,2*Math.PI,!1),e.stroke(),e.draw()},drawCircleByProgress:function(e){var r=this,n=this.progressContext;n||(n=t.createCanvasContext(this.elId,this),this.progressContext=n),n.setLineCap("round"),n.setLineWidth(this.borderWidthPx),n.setStrokeStyle(this.circleColor);var i=Math.floor(this.duration/100),o=2*Math.PI/100*e+this.startAngle;n.beginPath();var s=this.widthPx/2;if(n.arc(s,s,s-this.borderWidthPx,this.startAngle,o,!1),n.stroke(),n.draw(),this.newPercent>this.oldPercent){if(e++,e>this.newPercent)return}else if(e--,e<this.newPercent)return;setTimeout((function(){r.drawCircleByProgress(e)}),i)}}};e.default=r}).call(this,r("543d")["default"])},db32:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/u-circle-progress/u-circle-progress-create-component',
    {
        'components/u-circle-progress/u-circle-progress-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("2bdb"))
        })
    },
    [['components/u-circle-progress/u-circle-progress-create-component']]
]);
