Avatar 头像

    1. <view class="page__hd">
    2. <view class="page__title">Avatar</view>
    3. <view class="page__desc">头像</view>
    4. </view>
    5. <view class="page__bd page__bd_spacing">
    6. <view>
    7. <wux-avatar size="small">U</wux-avatar>
    8. <wux-avatar>U</wux-avatar>
    9. <wux-avatar size="large">U</wux-avatar>
    10. </view>
    11. <view class="sub-title">Shape = square</view>
    12. <view>
    13. <wux-avatar shape="square">U</wux-avatar>
    14. <wux-avatar shape="square" size="large">U</wux-avatar>
    15. </view>
    16. <view class="sub-title">Custom Style</view>
    17. <view>
    18. <wux-avatar wux-class="wux-avatar--custom" size="small">U</wux-avatar>
    19. <wux-avatar body-style="background-color: #33cd5f" size="large">U</wux-avatar>
    20. </view>
    21. <view class="sub-title">Scale</view>
    22. <view>
    23. <wux-avatar scale size="small">Wux</wux-avatar>
    24. <wux-avatar scale>Weapp</wux-avatar>
    25. </view>
    26. <view class="sub-title">Src</view>
    27. <view>
    28. <wux-avatar size="small" src="https://wux.cdn.cloverstd.com/logo.png" />
    29. <wux-avatar src="https://wux.cdn.cloverstd.com/logo.png" />
    30. <wux-avatar size="large" src="https://wux.cdn.cloverstd.com/logo.png" />
    31. </view>
    32. </view>

    Avatar