629 B
629 B
UserProfile 用户资料
展示用户头像、昵称、性别与等级信息。
基础用法
:::preview 基础用法 || 传入 UserView 即可,头像与背景支持自定义解析
demo-preview=../demos/user-profile/basic.vue
:::
图片来源
按优先级依次取值:
user.profile.avatarUrl/user.profile.wrapperUrlresolveAvatarUrl/resolveWrapperUrl回调的返回值
回调适合根据 attachmentList 里的附件动态换取带签名的地址。avatarType 与 wrapperType 用于控制图片渲染模式,取值见导出的 ImageType。