0.4.0 • Published 5 years ago
colorsel v0.4.0
ay-color
一个简单的省区市滑动选择插件
安装
yarn add ay-color
or
npm i ay-color --S
使用
//ES6引入
import colorsel from 'ay-color'
Vue.use(colorsel);
//require引入
var colorsel = require('colorsel_ay')
Vue.use(colorsel)
//组件中使用
```html
<ay-color :colorArr=colorArr :show=show @getColor=getc></ay-color>
Props说明
参数 | 作用 | 类型 | 默认值 |
---|---|---|---|
colorArr | 定义的颜色数组 | ||
show | 展示与隐藏 |
事件
name | Description |
---|---|
getColor | 获取选中的颜色 |