Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mazfreelance/vue-winwheel

A vue component with winwheeljs for roulette and lucky spin. based on http://dougtesting.net/home
https://github.com/mazfreelance/vue-winwheel

Last synced: about 1 month ago
JSON representation

A vue component with winwheeljs for roulette and lucky spin. based on http://dougtesting.net/home

Awesome Lists containing this project

README

        

# vue-winwheel

a winwheel for vuejs based on http://dougtesting.net/home

fork on: https://github.com/rebotak/vue-winwheel

published on: https://www.npmjs.com/package/vue-winwheel

# Demo

Download this repository
```shell
git clone [email protected]:mazfreelance/vue-winwheel.git
```

Go to the demo folder
```shell
/vue-winwheel/demo
```

Then install dependencies
```shell
npm install
```

And run the project
```shell
npm run serve
```

# Installation

## npm

```shell
$ npm install vue-winwheel-reversion --save
```

# Usage

## Basic

```html

```

```html

import VueWinwheel from 'vue-winwheel-reversion/vue-winwheel'

export default {
components:{
VueWinwheel
},
data(){
return{
pageTitle : "Vue-Wheel",
wheelSize : 400,
btnColor : "",
btnText : "",
lineWidth : 3,
duration : 5,
spin : 5,
options:[
{
textFillStyle: '#fff',
fillStyle: '#000',
text:'Prize 1'
},
{
textFillStyle: '#000',
fillStyle: '#fadede',
text:'Prize 2'
},
{
textFillStyle: '#fff',
fillStyle: '#000',
text:'Prize 3'
},
{
textFillStyle: '#000',
fillStyle: '#fadede',
text:'Prize 4'
},
{
textFillStyle: '#fff',
fillStyle: '#000',
text:'Prize 5'
},
{
textFillStyle: '#000',
fillStyle: '#fadede',
text:'Prize 6'
},
{
textFillStyle: '#fff',
fillStyle: '#000',
text:'Prize 7'
},
{
textFillStyle: '#000',
fillStyle: '#fadede',
text:'Prize 8'
}
]
}
}
}

```

# License

[The MIT License](http://opensource.org/licenses/MIT)