1.0.2 • Published 1 year ago
@miner-mobile/capsule v1.0.2
@miner-mobile/capsule
@miner-mobile/capsule.
See our website capsule for more information.
Install
Using npm:
$ npm install --save @miner-mobile/capsule
or using yarn:
$ yarn add @miner-mobile/capsule
属性
Props
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
list | 运营位的数据源 | OperationPic[] | [] |
backgroundLink | 背景图盘的url | string | - |
backgroundHeight | 背景图的模块高度 | number | 图片的高度 |
titleName | 中文标题 | string | - |
onItemClick | 运营位的点击事件 | (item: OperationPic) => void | - |
onHeaderClick | 背景点击事件 | (linkUrl: string | undefined) => void | - |
OperationPic
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
imgUrl | 运营位的图片url | string | - |
operationName | 运营位的中文标题 | string | - |
linkUrl | 运营位的跳转链接 | string | - |