Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-pick-colors
Advanced tools
Readme
🎉 vue3 颜色拾取器
外观样式基于 vue-color-kit
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>
属性 | 说明 | 类型 | 默认值 | 版本 |
---|---|---|---|---|
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 | 颜色添加达到最大值 | — |
FAQs
A Color picker for Vue.js 3
The npm package vue-pick-colors receives a total of 262 weekly downloads. As such, vue-pick-colors popularity was classified as not popular.
We found that vue-pick-colors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.