index.wxml 620 B

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