
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
30 lines
799 B
Plaintext
30 lines
799 B
Plaintext
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
|
|
<view
|
|
wx:if="{{ loading }}"
|
|
class="custom-class {{ utils.bem('skeleton', [{animate}]) }}"
|
|
>
|
|
<view
|
|
wx:if="{{ avatar }}"
|
|
class="{{ utils.bem('skeleton__avatar', [avatarShape])}}"
|
|
style="{{ 'width:' + avatarSize + ';height:' + avatarSize }}"
|
|
/>
|
|
<view class="{{ utils.bem('skeleton__content')}}">
|
|
<view
|
|
wx:if="{{ title }}"
|
|
class="{{ utils.bem('skeleton__title') }}"
|
|
style="{{ 'width:' + titleWidth }}"
|
|
/>
|
|
<view
|
|
wx:for="{{ row }}"
|
|
wx:key="index"
|
|
wx:for-index="index"
|
|
class="{{ utils.bem('skeleton__row') }}"
|
|
style="{{ 'width:' + (isArray ? rowWidth[index] : rowWidth) }}"
|
|
/>
|
|
</view>
|
|
</view>
|
|
<view wx:else class="{{ utils.bem('skeleton__content')}}">
|
|
<slot />
|
|
</view>
|