index.wxml 677 B

1234567891011121314151617181920
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="getters" />
  3. <view
  4. class="van-progress custom-class"
  5. style="height: {{ utils.addUnit(strokeWidth) }}; {{ trackColor ? 'background: ' + trackColor : '' }}"
  6. >
  7. <view
  8. class="van-progress__portion"
  9. style="width: {{ percentage }}%; background: {{ inactive ? '#cacaca' : color }}"
  10. >
  11. <view
  12. wx:if="{{ showPivot && getters.text(pivotText, percentage) }}"
  13. style="color: {{ textColor }}; background: {{ pivotColor ? pivotColor : inactive ? '#cacaca' : color }}"
  14. class="van-progress__pivot"
  15. >
  16. {{ getters.text(pivotText, percentage) }}
  17. </view>
  18. </view>
  19. </view>