index.wxml 524 B

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