one-colorpicker
one-colorpicker
A Chrome-style ColorPicker
Install
$ npm install one-colorpicker
Quick Start
import {ColorPicker, ColorPanel} from 'one-colorpicker'
Vue.use(ColorPanel)
Vue.use(ColorPicker)
Props
value
bind v-model return string, eg: '#f90', 'rgba(0, 255, 255, .4)'
<color-panel v-model="color"></color-panel>
Events
change
<color-picker v-model="color" @change="change"></color-picker>
Build Setup
generated by vue-cli
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
License
Copyright (c) 2018 One View Licensed under the MIT license.
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.12 | ^2.5.16 | MIT | |
| 1.0.11 | ^2.5.16 | MIT | |
| 1.0.10 | ^2.5.16 | MIT | |
| 1.0.9 | ^2.5.16 | MIT | |
| 1.0.8 | ^2.5.16 | MIT |