UNPKG

978 BJavaScriptView Raw
1System.register(["./p-b2d01686.system.js"],(function(r){"use strict";var s,t,e;return{setters:[function(r){s=r.r;t=r.h;e=r.H}],execute:function(){var o=r("taro_progress_core",function(){function r(r){s(this,r);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}r.prototype.render=function(){var r=this,s=r.percent,o=r.showInfo,i=r.borderRadius,n=r.fontSize,a=r.strokeWidth,u=r.activeColor,c=r.backgroundColor,d=r.active;var h=s>100?100:s<0?0:s;var l={height:a+"px",backgroundColor:c};var p=d?"width 1s ease-in-out":"none";var v={width:h+"%",transition:p,WebkitTransition:p,backgroundColor:u,borderRadius:i?i+"px":"0px"};return t(e,{class:"weui-progress"},t("div",{class:"weui-progress__bar",style:l},t("div",{class:"weui-progress__inner-bar",style:v})),o&&t("div",{class:"weui-progress__opr",style:{"font-size":n+"px"}},t("span",null,h,"%")))};return r}())}}}));
\No newline at end of file