头像组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
icon |
string | object |
<optional> |
设置头像的图标类型,或my-icon组件参数对象 |
|
shape |
string |
<optional> |
circle
|
形状, 可选 'circle', 'square' |
size |
string | number |
<optional> |
设置头像的大小,可选 'large', 'small', 'default',也可以指定像素大小 |
|
src |
string |
<optional> |
图片类头像的资源地址 |
|
alt |
string |
<optional> |
图像无法显示时的替代文本 |
|
theme |
string |
<optional> |
info
|
主题颜色,可选值 'primary', 'success', 'warning', 'danger', 'info' |
属性参数
(inner) slots
- Source:
Properties:
Name | Type | Description |
---|---|---|
default |
string | 默认插槽,定义头像文字 |
插槽
Events
error
- Source:
图片加载错误时触发
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |