index.wxml 618B

123456789101112131415161718192021
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <view
  4. class="van-progress custom-class"
  5. style="{{ computed.rootStyle({ strokeWidth, trackColor }) }}"
  6. >
  7. <view
  8. class="van-progress__portion"
  9. style="{{ computed.portionStyle({ percentage, inactive, color }) }}"
  10. >
  11. <view
  12. wx:if="{{ showPivot && computed.pivotText(pivotText, percentage) }}"
  13. style="{{ computed.pivotStyle({ textColor, pivotColor, inactive, color, right }) }}"
  14. class="van-progress__pivot"
  15. >
  16. {{ computed.pivotText(pivotText, percentage) }}
  17. </view>
  18. </view>
  19. </view>