skeleton.wxml 999 B

1234567891011121314151617181920212223242526
  1. <view
  2. wx:if="{{ loading }}"
  3. class="t-class {{classPrefix}} {{ animation ? classPrefix + '--animate-' + animation : '' }}"
  4. >
  5. <view wx:if="{{ theme === 'avatar-text' }}" class="t-class-avatar {{classPrefix}}__avatar " />
  6. <view wx:if="{{theme === 'avatar-text' || 'text' }}" class="{{classPrefix}}__content">
  7. <view
  8. wx:for="{{ rowCol.length }}"
  9. wx:key="index"
  10. wx:for-index="index"
  11. class="{{classPrefix}}__row"
  12. style="justify-content: {{ isNumList[index] ? 'space-between' : '' }}"
  13. >
  14. <view
  15. wx:for="{{ rowStyles[index] }}"
  16. wx:key="col"
  17. wx:for-item="item"
  18. class="t-class-text {{classPrefix}}__item"
  19. style="width: {{ item.width }}; height: {{item.height ? item.height : '32rpx' }}; margin-right: {{ item.marginRight ? item.marginRight : '' }}; margin-left: {{ item.marginLeft ? item.marginLeft : '' }}"
  20. ></view>
  21. </view>
  22. </view>
  23. </view>
  24. <view wx:else class="{{classPrefix}}__content">
  25. <slot />
  26. </view>