图片墙组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
isHorizontal |
Boolean |
<optional> |
是否横向布局,默认true, false 为纵向布局 |
keyMap |
Object |
<optional> |
字段映射, 用于映射加载数组对象中的 图片链接字段 |
loadData |
function |
<optional> |
加载图片方法,返回promise, promise 中返回数组, 数组元素图片链接(Promise.resolve([{src: xxxx}, {src: xxxx}])) |
imgHeight |
Number |
<optional> |
横向布局时 图片基础高度(此参数为横向布局的图片最小高度) |
margin |
Number |
<optional> |
图片间距,横向布局时为图片四边margin,纵向布局时为图片下边距 |
columns |
Object |
<optional> |
纵向布局时 显示列数,支持响应式对象设置 {xxl,xl,lg,md,sm,xs} |
属性参数
(inner) slots
- Source:
Properties:
Name | Type | Description |
---|---|---|
image |
string | 图片插槽 |
content |
string | 内容插槽 |
插槽
Events
on-added
- Source:
数据插入事件
Parameters:
Name | Type | Description |
---|---|---|
当前插入图片 |
array | |
全部图片 |
array |