wszhyWx/unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-avatar/u-avatar.wxml

1 line
1017 B
Plaintext
Raw Normal View History

<view data-event-opts="{{[['tap',[['click',['$event']]]]]}}" class="u-avatar data-v-d1f81fdc" style="{{$root.s0}}" bindtap="__e"><block wx:if="{{!uText&&avatar}}"><image class="u-avatar__img data-v-d1f81fdc" style="{{$root.s1}}" src="{{avatar}}" mode="{{imgMode}}" data-event-opts="{{[['error',[['loadError',['$event']]]]]}}" binderror="__e"></image></block><block wx:else><block wx:if="{{uText}}"><text class="u-line-1 data-v-d1f81fdc" style="{{'font-size:'+('38rpx')+';'}}">{{uText}}</text></block><block wx:else><slot></slot></block></block><block wx:if="{{showSex}}"><view class="{{['u-avatar__sex','data-v-d1f81fdc','u-avatar__sex--'+sexIcon]}}" style="{{$root.s2}}"><u-icon vue-id="1b1b8aa6-1" name="{{sexIcon}}" size="20" class="data-v-d1f81fdc" bind:__l="__l"></u-icon></view></block><block wx:if="{{showLevel}}"><view class="u-avatar__level data-v-d1f81fdc" style="{{$root.s3}}"><u-icon vue-id="1b1b8aa6-2" name="{{levelIcon}}" size="20" class="data-v-d1f81fdc" bind:__l="__l"></u-icon></view></block></view>