skeleton.wxml 694 B

12345678910111213141516171819202122232425
  1. <wxs src="./skeleton.wxs" module="this" />
  2. <view wx:if="{{ loading }}" class="{{classPrefix}} {{prefix}}-class ">
  3. <view wx:if="{{ parsedRowcols.length }}" class="{{classPrefix}}__content">
  4. <view
  5. wx:for="{{parsedRowcols}}"
  6. wx:for-index="index"
  7. wx:for-item="row"
  8. wx:key="index"
  9. class="{{classPrefix}}__row {{prefix}}-class-row"
  10. >
  11. <view
  12. wx:for="{{ row }}"
  13. wx:for-index="index"
  14. wx:for-item="col"
  15. wx:key="index"
  16. class="{{col.class}} {{prefix}}-class-col"
  17. style="{{this.getStyle(col.style)}}"
  18. ></view>
  19. </view>
  20. </view>
  21. </view>
  22. <view wx:else class="{{classPrefix}}__content">
  23. <slot />
  24. </view>