# vue-luck-draw **Repository Path**: zzjwuishare/vue-luck-draw ## Basic Information - **Project Name**: vue-luck-draw - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-03-04 - **Last Updated**: 2021-03-04 ## 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
```