index.wxml 574 Bytes
Newer Older
李嘉林 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<wxs src="../wxs/utils.wxs" module="utils" />

<view class="custom-class van-loading {{ vertical ? 'van-loading--vertical' : '' }}">
  <view
    class="van-loading__spinner van-loading__spinner--{{ type }}"
    style="color: {{ color }}; width: {{ utils.addUnit(size) }}; height: {{ utils.addUnit(size) }}"
  >
    <view
      wx:if="{{ type === 'spinner' }}"
      wx:for="{{ array12 }}"
      wx:key="index"
      class="van-loading__dot"
    />
  </view>
  <view class="van-loading__text" style="font-size: {{ utils.addUnit(textSize) }};">
    <slot />
  </view>
</view>