u-image.axml 1.3 KB
<view data-event-opts="{{[['tap',[['onClick',['$event']]]]]}}" class="u-image data-v-32babe48" style="{{$root.s0}}" onTap="__e"><block a:if="{{!isError}}"><image class="u-image__image data-v-32babe48" style="{{'border-radius:'+(shape=='circle'?'50%':$root.g0)+';'}}" src="{{src}}" mode="{{mode}}" lazy-load="{{lazyLoad}}" show-menu-by-longpress="{{showMenuByLongpress}}" data-event-opts="{{[['error',[['onErrorHandler',['$event']]]],['load',[['onLoadHandler',['$event']]]]]}}" onError="__e" onLoad="__e"></image></block><block a:if="{{showLoading&&loading}}"><view class="u-image__loading data-v-32babe48" style="{{'border-radius:'+(shape=='circle'?'50%':$root.g1)+';'+('background-color:'+(this.bgColor)+';')}}"><block a:if="{{$slots.loading}}"><slot name="loading"></slot></block><block a:else><u-icon vue-id="24938b94-1" name="{{loadingIcon}}" width="{{width}}" height="{{height}}" class="data-v-32babe48" onVueInit="__l"></u-icon></block></view></block><block a:if="{{showError&&isError&&!loading}}"><view class="u-image__error data-v-32babe48" style="{{'border-radius:'+(shape=='circle'?'50%':$root.g2)+';'}}"><block a:if="{{$slots.error}}"><slot name="error"></slot></block><block a:else><u-icon vue-id="24938b94-2" name="{{errorIcon}}" width="{{width}}" height="{{height}}" class="data-v-32babe48" onVueInit="__l"></u-icon></block></view></block></view>