UNPKG

@tarojs/components

Version:
1 lines 1.01 kB
System.register(["./p-7e6b54cb.system.js"],(function(r){"use strict";var t,s,e;return{setters:[function(r){t=r.r;s=r.h;e=r.H}],execute:function(){var o=r("taro_progress_core",function(){function r(r){t(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,t=r.percent,o=r.showInfo,i=r.borderRadius,n=r.fontSize,a=r.strokeWidth,c=r.activeColor,u=r.backgroundColor,h=r.active;var d=t>100?100:t<0?0:t;var l={height:a+"px",backgroundColor:u};var p=h?"width 1s ease-in-out":"none";var v={width:"".concat(d,"%"),transition:p,WebkitTransition:p,backgroundColor:c,borderRadius:i?"".concat(i,"px"):"0px"};return s(e,{class:"weui-progress"},s("div",{class:"weui-progress__bar",style:l},s("div",{class:"weui-progress__inner-bar",style:v})),o&&s("div",{class:"weui-progress__opr",style:{"font-size":"".concat(n,"px")}},s("span",null,d,"%")))};return r}())}}}));