index.axml 786 B

12345678910111213
  1. <view class='progress-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='getters'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class='van-progress {{customClass}}' style="height: {{ utils.addUnit(strokeWidth) }}; {{ trackColor ? 'background: ' + trackColor : '' }}">
  7. <view class='van-progress__portion' style="width: {{ percentage }}%; background: {{ inactive ? '#cacaca' : color }}">
  8. <view a:if='{{ showPivot && getters.text(pivotText, percentage) }}' style="color: {{ textColor }}; background: {{ pivotColor ? pivotColor : inactive ? '#cacaca' : color }}" class='van-progress__pivot'>
  9. {{ getters.text(pivotText, percentage) }}
  10. </view>
  11. </view>
  12. </view>
  13. </view>