# vue-pop-colorpicker

> A vue colorpicker component

Latest version **1.0.2** (published 2017-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-pop-colorpicker
pnpm add vue-pop-colorpicker
yarn add vue-pop-colorpicker
bun add vue-pop-colorpicker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-30 |
| First published | 2017-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | xiaoping |
| Maintainers | xiaoping |

## Links

- npm: https://www.npmjs.com/package/vue-pop-colorpicker
- Repository: https://github.com/excaliburhan/vue-pop-colorpicker
- Homepage: https://github.com/excaliburhan/vue-pop-colorpicker#readme
- Issues: https://github.com/excaliburhan/vue-pop-colorpicker/issues
- npm.io page: https://npm.io/package/vue-pop-colorpicker

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^2.4.2
- [vue-color](https://npm.io/package/vue-color.md) ^2.4.0
- [element-ui](https://npm.io/package/element-ui.md) ^1.4.3
- [tinycolor2](https://npm.io/package/tinycolor2.md) ^1.4.1

## Recent versions

- 1.0.2 (latest) — 2017-08-30
- 1.0.1 — 2017-08-30
- 1.0.0 — 2017-08-28

## README

# vue-pop-colorpicker
基于vue-color和element-ui的一个弹出式的颜色选择组件。

支持直接手动更改hex或rgba等颜色值。

支持多种样式的颜色选择器，目前支持：`chrome`, `compact`, `material`, `photoshop`, `sketch`, `slider`, `swatches`。默认为`chrome`。

## 安装

> npm install vue-pop-colorpicker --save

## 使用

### 全局组件

```
import VueColorpicker from 'vue-pop-colorpicker'
Vue.use(VueColorpicker)
```


### 局部组件

```
import { VueColorpicker } from 'vue-pop-colorpicker'

new Vue({
  components: {
    'color-picker': VueColorpicker
  },
  data () {
    return {
      color: '#fff',
    }
  },
  methods: {
    onChange (color) {
      console.log(color)
    }
  }
})

<color-picker v-model="color" @change="onChange"></color-picker>
```

## 其他

- 颜色选择器功能是vue-color中fork的
- popup功能是element-ui中fork的

---
_Source: https://npm.io/package/vue-pop-colorpicker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
