epmet 工作端 小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

<view class="wux-class {{ classes.wrap }}" style="{{ style }}" bindtap="onTap" wx:if="{{ status !== 'unmounted' }}">
<view class="{{ classes.inner }}">
<image
class="{{ classes.thumb }}"
src="{{ src }}"
mode="{{ mode }}"
webp="{{ webp }}"
lazy-load="{{ lazyLoad }}"
show-menu-by-longpress="{{ showMenuByLongpress }}"
binderror="onError"
bindload="onLoad"
wx:if="{{ src }}"
/>
<slot></slot>
</view>
<view class="{{ classes.mask }}" wx:if="{{ status === 'empty' }}">
<view class="{{ classes.text }}" wx:if="{{ empty }}">{{ empty }}</view>
<block wx:else>
<slot name="empty"></slot>
</block>
</view>
<view class="{{ classes.mask }}" wx:elif="{{ status === 'loading' }}">
<view class="{{ classes.text }}" wx:if="{{ loading }}">{{ loading }}</view>
<block wx:else>
<slot name="loading"></slot>
</block>
</view>
<view class="{{ classes.mask }}" wx:elif="{{ status === 'error' }}">
<view class="{{ classes.text }}" wx:if="{{ error }}">{{ error }}</view>
<block wx:else>
<slot name="error"></slot>
</block>
</view>
</view>