This commit is contained in:
Timi
2026-10-30 14:28:27 +08:00
parent ef71681bd5
commit 1909587a0b
68 changed files with 6616 additions and 772 deletions
+24
View File
@@ -0,0 +1,24 @@
# 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" />