npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hzx-pick-rgbcolor

v1.0.1

Published

A Color picker for rgb

Downloads

7

Readme

vue-pick-colors

🎉 vue3 颜色拾取器

外观样式基于 vue-color-kit

English

Demo

安装

npm install vue-pick-colors

或者

yarn add vue-pick-colors

使用

<template>
  <pick-colors v-model:value="value"/>
</template>

<script lang="ts" setup>
  import PickColors from 'vue-pick-colors'
  const value = ref('#ff4500')
</script>

API

| 属性 | 说明 | 类型 | 默认值 | 版本 | | -------------------- | ------------------------------------------------------- | --------------------------------------- | ------------------------------------------------------------ | ----- | | value(v-model) | 值,支持hex、rgb、rgba、hsl、hsla、hsv、hsva | string | string[] | — | | | show-picker(v-model) | 控制拾取器隐藏或显示 | boolean | — | 1.5.0 | | size | 颜色块大小 | number | string | 20 | | | width | 色块宽度如果为空使用 size属性 | number | string | — | 1.5.0 | | height | 色块高度如果为空使用 size属性 | number | string | — | 1.5.0 | | theme | 主题 | light | dark | light | | | colors | 预留颜色组支持hex、rgb、rgba、hsl、hsla、hsv、hsva | string [] | ['#ff4500','#ff8c00','#ffd700', '#90ee90','#00ced1','#1e90ff', '#c71585','#ff4500','#ff7800', '#00babd','#1f93ff','#fa64c3'] | | | format | 颜色值格式化 | hex | rgb | hsl | hst | hex | | | show-alpha | 是否支持透明度选择 | boolean | false | | | add-color | 是否支持添加颜色 | boolean | false | | | popup-container | 定义拾取器的容器 | string | Vue.RendererElement| boolean | 'body' | 1.5.0 | | z-index | 拾取器的层级 | number | 1000 | 1.5.0 | | max | 添加颜色最大数 | number | 13 | |

事件

| 事件名 | 描述 | 参数 | 版本 | | ------------ | ------------------ | ------------------------------------------------------------ | ----- | | change | 颜色值变化 | function(value: string|string [],color: string,index: number) | | | close-picker | 关闭拾取器 | function(value: string|string []) | 1.5.0 | | overflow-max | 颜色添加达到最大值 | — | |