import{r as s,h as o,H as r}from"./p-78e3ebb9.js";const t=class{constructor(o){s(this,o);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}render(){const{percent:s,showInfo:t,borderRadius:e,fontSize:i,strokeWidth:n,activeColor:a,backgroundColor:c,active:h}=this;const l=s>100?100:s<0?0:s;const p={height:n+"px",backgroundColor:c};const d=h?"width 1s ease-in-out":"none";const u={width:`${l}%`,transition:d,WebkitTransition:d,backgroundColor:a,borderRadius:e?`${e}px`:"0px"};return o(r,{class:"weui-progress"},o("div",{class:"weui-progress__bar",style:p},o("div",{class:"weui-progress__inner-bar",style:u})),t&&o("div",{class:"weui-progress__opr",style:{"font-size":`${i}px`}},o("span",null,l,"%")))}};export{t as taro_progress_core};
//# sourceMappingURL=p-f88f0f55.entry.js.map