# 幸运抽奖 **Repository Path**: perfectchl/vue-luck-draw ## Basic Information - **Project Name**: 幸运抽奖 - **Description**: 🎉一个基于 vue2 / vue3 的(大转盘抽奖 / 九宫格抽奖)插件;😇A lucky draw plug-in based on vue2 / vue3;🎨奖品 / 文字 / 图片 / 颜色 / 按钮均可配置,支持同步 / 异步抽奖,🏅概率前 / 后端可控,自动根据 dpr 调整清晰度适配移动端 - **Primary Language**: JavaScript - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 23 - **Created**: 2021-01-22 - **Last Updated**: 2021-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
logo

vue-luck-draw 抽奖插件

一个基于 vue 的 ( 大转盘 / 九宫格 ) 抽奖插件

stars forks version downloads size

author license


## 官方文档 & Demo演示 > **中文**:[https://100px.net/document/vue.html](https://100px.net/document/vue.html) > **English**:**If anyone can help translate the document, please contact me** `ldq404@qq.com`
## 在 vue2.x / vue3.x 中使用 ### 方式 1:通过 import 引入 1. 首先安装插件 ```shell # npm 安装: npm install vue-luck-draw # yarn 安装: yarn add vue-luck-draw ``` 2. 然后找到 `main.js` 引入插件并 `use` ```js // vue2.x import LuckDraw from 'vue-luck-draw' Vue.use(LuckDraw) // vue3.x import LuckDraw from 'vue-luck-draw/vue3' createApp(App).use(LuckDraw).mount('#app') ``` 3. 最后在组件内使用 **``大转盘抽奖** 或 **``九宫格抽奖** ```vue ```
### 方式 2:通过 script 标签引入 从下面的链接里下载`vue-luck-draw.umd.min.js`文件, 然后使用 script 标签引入 - vue2.x:[https://github.com/buuing/vue-luck-draw/tree/master/dist](https://github.com/buuing/vue-luck-draw/tree/master/dist) - vue3.x:[https://github.com/buuing/vue-luck-draw/tree/master/vue3](https://github.com/buuing/vue-luck-draw/tree/master/vue3) ```html
```