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

1 line
1017 B
Plaintext
Raw Normal View History

2023-10-05 02:26:25 +00:00
<view data-event-opts="{{[['tap',[['click',['$event']]]]]}}" class="u-avatar data-v-b36130f2" style="{{$root.s0}}" bindtap="__e"><block wx:if="{{!uText&&avatar}}"><image class="u-avatar__img data-v-b36130f2" 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-b36130f2" 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-b36130f2','u-avatar__sex--'+sexIcon]}}" style="{{$root.s2}}"><u-icon vue-id="1b1b8aa6-1" name="{{sexIcon}}" size="20" class="data-v-b36130f2" bind:__l="__l"></u-icon></view></block><block wx:if="{{showLevel}}"><view class="u-avatar__level data-v-b36130f2" style="{{$root.s3}}"><u-icon vue-id="1b1b8aa6-2" name="{{levelIcon}}" size="20" class="data-v-b36130f2" bind:__l="__l"></u-icon></view></block></view>