# ph-colorpicker

> ## Project setup ``` npm install ```

Latest version **0.1.0-beta.1** (published 2021-08-27) · 0 weekly downloads

## Install

```sh
npm install ph-colorpicker
pnpm add ph-colorpicker
yarn add ph-colorpicker
bun add ph-colorpicker
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-beta.1 |
| Published | 2021-08-27 |
| First published | 2021-08-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 30.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | phoeon |

## Links

- npm: https://www.npmjs.com/package/ph-colorpicker
- npm.io page: https://npm.io/package/ph-colorpicker

## Dependencies (9)

- [ph-evt](https://npm.io/package/ph-evt.md) ^1.0.0
- [ph-drag](https://npm.io/package/ph-drag.md) ^1.0.0
- [ph-media](https://npm.io/package/ph-media.md) ^1.0.0-beta.0
- [ph-slider](https://npm.io/package/ph-slider.md) ^0.1.0-beta.0
- [ph-gesture](https://npm.io/package/ph-gesture.md) ^1.0.0-beta.0
- [ph-position](https://npm.io/package/ph-position.md) ^1.0.0-beta.0
- [ph-color-util](https://npm.io/package/ph-color-util.md) ^1.0.0
- [ph-responsive](https://npm.io/package/ph-responsive.md) ^1.0.0
- [ph-actionsheet](https://npm.io/package/ph-actionsheet.md) ^0.1.1-beta.0

## Recent versions

- 0.1.0-beta.1 (latest) — 2021-08-27
- 0.1.0-beta.5 (beta) — 2021-09-28
- 0.1.0-beta.4 — 2021-09-27
- 0.1.0-beta.3 — 2021-09-20
- 0.1.0-beta.2 — 2021-09-20
- 0.1.0-beta.0 — 2021-08-26

## README

# vue-template

## Project setup
```
npm install
```

### install
```
npm i ph-colorpicker
```

### Compiles and minifies for production
```
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ColorPicker from './components/index'
createApp(App).use(ColorPicker).mount('#app')


//子组件
const {left,top,height,width} = (e.target as HTMLElement).getBoundingClientRect() as any
this.$phColorPicker("#ff00ff",{
    left,
    top,
    height,
    width,
    preshow:true,//是否显示预定义颜色区域
    precolors:["#ff0","#f0f","#00f"] //预定义颜色
}).done((v:string)=>{
    // emit("pick",v)
    console.log(v)
    color.value = v
})

```

### Lints and fixes files
```
npm run lint
```

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