skeleton.wxml 782 B

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