# vue-lottery **Repository Path**: cdyun/vue-lottery ## Basic Information - **Project Name**: vue-lottery - **Description**: 转盘抽奖Vue组件,原创组件,持续更新中 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2019-02-28 - **Last Updated**: 2024-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-lottery 在线演示地址: [https://venler.github.io/demo/vue-lottery/index.html](https://venler.github.io/demo/vue-lottery/index.html) ## How To Use > ES6 ```js npm install vue-lottery --save ``` ``` import lottery from 'vue-lottery' Vue.use(lottery) ``` ## 调用示例 ``` ``` ### props说明 | 参数名 | 参数类型 | 解释 | 是否必传 | | :--- | :--- | :--- | :--- | | lottery-prizenum | Number | 奖品总数量 | 是 | | lottery-prizeno | Number | 从起点开始逆时针算,中奖的是第几个 | 是 | | lottery-bg | String | 背景图 | 否 | | content-bg | String | 内容区域背景图 | 是 | | pointer-bg | String | 指针背景图 | 是 | | lottery-start | Number | 0为停止,1为开始转动 | 否 | | lotteryDone | Function | 旋转完成后的回调函数 | 否 | | lotteryClick | Function | 点击抽奖按钮的回调 | 否 | | lottery-width | String | 内外圈间距百分比 | 否 |