
	<wxs src="../wxs/utils.wxs" module="utils"/>

	<view style="{{ viewStyle }}; {{ mcStyle }}" class="mc-class {{ utils.bem('image', { round })}}" bind:tap="onClick">
		<image wx:if="{{ !error }}" src="{{ src }}" mode="{{ mode }}" alt="{{alt}}" lazy-load="{{ lazyLoad }}" class="image-class mc-image__img" show-menu-by-longpress="{{ showMenuByLongpress }}" bind:load="onLoad" bind:error="onError"/>

		<view wx:if="{{ loading && showLoading }}" class="loading-class mc-image__loading">
			<slot wx:if="{{ useLoadingSlot }}" name="loading"/>
			<mc-icon wx:else type="playbill" size="22"/>
		</view>
		<view wx:if="{{ error && showError }}" class="error-class mc-image__error">
			<slot wx:if="{{ useErrorSlot }}" name="error"/>
			<mc-icon wx:else type="yiwen" size="22"/>
		</view>
	</view>

