Skip to content
On this page

Avatar 组件

Avatar 组件用于显示用户的头像图像。

Props

属性名类型默认值描述
srcstring''头像 URL。
size'tiny' | 'small' | 'medium' | 'large' | 'huge''medium'头像尺寸。
shape'circle' | 'square''circle'头像形状。
modeImageMode'aspectFill'图片显示模式。
borderbooleanfalse是否有头像边框。
shadow'none' | 'medium' | 'large''none'是否有阴影。
previewbooleanfalse是否能预览头像。
previewSrcstring''预览头像的 URL。
widthnumber | string-设置头像的宽度。