🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ay-color

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ay-color

一个瞎搞的颜色插件

latest
Source
npmnpm
Version
1.3.5
Version published
Maintainers
1
Created
Source

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定义的颜色数组array['red','yellow','pink','white','black','orange']
show展示与隐藏boolfalse

事件

nameDescription
getColor获取选中的颜色

###方法说明

参数作用类型值解释
e获取change的对象objecte.val:当前值,e.oldVal:老值

FAQs

Package last updated on 19 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts