头像列表
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Array |
<optional> |
头像数据数组,字段包括{text, icon, src, tooltip, theme, alt} |
tooltip |
Object |
<optional> |
统一 tooltip 配置 |
max |
number |
<optional> |
最多显示几个 |
统一设置尺寸,可以选 |
string | number | 'large', 'small', 'default' |
|
alt |
string |
<optional> |
图像无法显示时的替代文本 |
theme |
string |
<optional> |
统一配置 颜色 |
shape |
string |
<optional> |
统一配置 形状,可选 'circle', 'square' |
addable |
boolean |
<optional> |
显示添加按钮 |
addIcon |
string |
<optional> |
添加按钮图标样式 |
属性参数
Events
click-add
- Source:
点击添加按钮时触发
click-item
- Source:
点击头像时触发
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | 头像 |
click-more
- Source:
点击更多按钮时触发