SquareNine 九宫格
参考 __VUE/squarenine/demo.vue,中间开始抽奖,外围卡片翻牌开奖。
演示
9:41
代码示例
引入
推荐使用 easycom 模式,配置后无需手动 import 即可直接使用 <re-square-nine />。
API
SquareNine Props
| 名称 | 类型 | 默认值 | 描述 | 必传 |
|---|---|---|---|---|
| visible | boolean | true | - | N |
| prizeList | Array<UTSJSONObject> | as Array<UTSJSONObject> | - | N |
| prizeIndex | number | 0 | - | N |
| cardImg | string | 'https://img11.360buyimg.com/imagetools/jfs/t1/73511/35/17197/9388/613852cdE75dc6822/ddb31e0f3cfdcb81.png' | - | N |
| customStyle | string | '' | 自定义样式 | N |
SquareNine Events
| 名称 | 参数 | 描述 |
|---|---|---|
| click | - | 点击时触发 |
| startTurns | - | - |
| returnTurns | - | - |
| endTurns | prize: string | - |
SquareNine Slots
| 名称 | 描述 |
|---|---|
| - | - |
