vue-winwheel

a winwheel for vuejs based on http://dougtesting.net/home
2,085 16
Install
npm install vue-winwheel
Latest Version:1.0.0
Older releases:2
License:MIT
Last Updated:Sep 28, 2022
Links: GitHub  ·  npm
Maintainer: rebotak

vue-winwheel

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

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

Demo

The demo page is HERE. or maybe just download this repository and npm install, npm serve the demo folder

Installation

npm

$ npm install vue-winwheel

Usage

Basic

<vue-winwheel :segments="options" />
<script>
import VueWinwheel from './VueWinwheel.vue'

export default {
  data(){
    return{
      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'
					}
				]
    }
  }
}
</script>

License

The MIT License

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
1.0.0 MIT
0.1.4 MIT
0.1.3 MIT
0.1.2 ^2.5.17 MIT
0.1.1 ^2.5.17 MIT