index.wxml 555B

1234567891011121314151617181920
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <view class="custom-class {{ utils.bem('loading', { vertical }) }}">
  4. <view
  5. class="van-loading__spinner van-loading__spinner--{{ type }}"
  6. style="{{ computed.spinnerStyle({ color, size }) }}"
  7. >
  8. <view
  9. wx:if="{{ type === 'spinner' }}"
  10. wx:for="{{ array12 }}"
  11. wx:key="index"
  12. class="van-loading__dot"
  13. />
  14. </view>
  15. <view class="van-loading__text" style="{{ computed.textStyle({ textSize }) }}">
  16. <slot />
  17. </view>
  18. </view>