Skip to content

Avatar / Logo

联系人、成员列表头像 RdAvatar(按姓名哈希配色);品牌 RdLogo 支持折叠态 / 展开态图片(iconSrc / fullSrc,默认为内置 svg)。

基础用法

尺寸 sm / md / lg;形状 rounded / circle。

API

RdAvatar Attributes

属性名说明类型默认值
name姓名;用于首字与配色string
size尺寸'sm' | 'md' | 'lg''md'
shape形状'rounded' | 'circle''rounded'
color自定义底色;不传则按 name 哈希string

RdLogo Attributes

属性名说明类型默认值
collapsedtrue 时仅图标booleanfalse
iconSrc折叠态图片地址;默认内置 logo-icon.svgstring内置 logo-icon
fullSrc展开态图片地址;默认内置 logo-full.svgstring内置 logo-full