We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用来代表用户或事物,支持图片、图标或字符展示。
alt
string
gap
number
4
icon
string | VNode | #icon
user
src
shape
'circle' | 'square'
'circle'
size
'large' | 'medium' | 'small' | number | Record<BreakpointKey, number>
'medium'
srcSet
onError
() => unknown
default
The text was updated successfully, but these errors were encountered:
feat(comp:avatar): add avatar component (#371)
9545e02
fix #55
danranVm
Successfully merging a pull request may close this issue.
What problem does this feature solve?
用来代表用户或事物,支持图片、图标或字符展示。
What does the proposed API look like?
ix-avatar
AvatarProps
alt
string
gap
number
4
icon
string | VNode | #icon
user
src
, 则作为图片加载失败的 fallback 行为shape
'circle' | 'square'
'circle'
size
'large' | 'medium' | 'small' | number | Record<BreakpointKey, number>
'medium'
src
string
srcSet
string
onError
() => unknown
AvatarSlots
default
icon
The text was updated successfully, but these errors were encountered: