Package Exports
- @xuanmo/vue-color-picker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xuanmo/vue-color-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
颜色选择器
使用方法
import Vue from 'vue'
import XColorPicker from '@xuanmo/vue-color-picker'
Vue.use(XColorPicker)
<x-color-picker v-model="color" />
props
字段名 | 说明 | 类型 | 默认值 |
---|---|---|---|
v-model(value) | 获取选中颜色 | string | #000000 |
events
事件名 | 说明 | 回调参数 |
---|---|---|
change | 颜色值发生改变时触发 | color |