webpackJsonp([10],{304:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=window.exparser.registerElement({is:"wx-progress",template:'\n    <div class="wx-progress-bar" style.height="{{strokeWidth}}px">\n      <div class="wx-progress-inner-bar" style.width="{{curPercent}}%" style.background-color="{{color}}"></div>\n    </div>\n    <p class="wx-progress-info" parse-text-content hidden$="{{!showInfo}}">\n      {{curPercent}}%\n    </p>\n  ',behaviors:["wx-base"],properties:{percent:{type:Number,observer:"percentChange",public:!0},curPercent:{type:Number},showInfo:{type:Boolean,value:!1,public:!0},strokeWidth:{type:Number,value:6,public:!0},color:{type:String,value:"#09BB07",public:!0},active:{type:Boolean,value:!1,public:!0,observer:"activeAnimation"}},percentChange:function(e){e>100&&(this.percent=100),e<0&&(this.percent=0),this.__timerId&&clearInterval(this.__timerId),this.activeAnimation(this.active)},activeAnimation:function(e){if(!isNaN(this.percent))if(e){var t=function(){return this.percent<=this.curPercent+1?(this.curPercent=this.percent,void clearInterval(this.__timerId)):void++this.curPercent};this.curPercent=0,this.__timerId=setInterval(t.bind(this),30),t.call(this)}else this.curPercent=this.percent},detached:function(){this.__timerId&&clearInterval(this.__timerId)}})}});