ay-color
一个简单的省区市滑动选择插件
安装
yarn add ay-colorornpm 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 | 获取选中的颜色 |