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