index.wxml 618 Bytes
Newer Older
李嘉林 committed
1
<wxs src="../wxs/utils.wxs" module="utils" />
程默 committed
2
<wxs src="./index.wxs" module="computed" />
李嘉林 committed
3 4 5

<view
  class="van-progress custom-class"
程默 committed
6
  style="{{ computed.rootStyle({ strokeWidth, trackColor }) }}"
李嘉林 committed
7 8 9
>
  <view
    class="van-progress__portion"
程默 committed
10
    style="{{ computed.portionStyle({ percentage, inactive, color }) }}"
李嘉林 committed
11 12
  >
    <view
程默 committed
13 14
      wx:if="{{ showPivot && computed.pivotText(pivotText, percentage) }}"
      style="{{ computed.pivotStyle({ textColor, pivotColor, inactive, color, right }) }}"
李嘉林 committed
15 16
      class="van-progress__pivot"
    >
程默 committed
17
      {{ computed.pivotText(pivotText, percentage) }}
李嘉林 committed
18 19 20
    </view>
  </view>
</view>