index.wxml 650 B

123456789101112131415161718192021222324
  1. <view class="van-loading {{vertical ? 'van-loading--vertical' : ''}}">
  2. <view
  3. class="van-loading__wrapper custom-class"
  4. style="width: {{ sizeWithUnit }}; height: {{ sizeWithUnit }}"
  5. >
  6. <view
  7. class="van-loading__spinner van-loading__spinner--{{ type }}"
  8. style="color: {{ color }};"
  9. >
  10. <view
  11. wx:if="{{ type === 'spinner' }}"
  12. wx:for="item in 12"
  13. wx:key="index"
  14. class="van-loading__dot"
  15. />
  16. </view>
  17. </view>
  18. <view
  19. style="font-size: {{textSizeWithUnit}};"
  20. class="van-loading__text {{vertical ? 'van-loading__text--vertical' : ''}}"
  21. >
  22. <slot />
  23. </view>
  24. </view>