progress.wxml 618 B

123456789101112131415
  1. <view class="{{ classPrefix }} {{classPrefix}}--status--{{status || computedStatus}}">
  2. <view class="{{ classPrefix }}__inner {{prefix}}-class">
  3. <view
  4. class="{{ classPrefix }}__bar {{prefix}}-class-bar"
  5. style="height: {{ heightBar }}; background: {{ trackColor }}"
  6. >
  7. <view class="{{ classPrefix }}__bar-percent" style="background:{{ colorBar }}; width:{{ computedProgress + '%'}}">
  8. </view>
  9. </view>
  10. <view wx:if="{{ label }}" class="{{ classPrefix }}__label {{prefix}}-class-label">
  11. {{ computedProgress + '%' }}
  12. </view>
  13. <slot name="label"></slot>
  14. </view>
  15. </view>