Files
2026-10-30 14:28:27 +08:00

25 lines
629 B
Markdown

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