基于 Vue3 颜色拾取器

2,221 阅读1分钟

vue-pick-colors

文档

介绍

  • 是 TS + Vue3 编写的。

image.png

  • 轻量级,唯一的依赖是 @popperjs/core

image.png

  • 支持暗黑主题

image.png

  • 支持 hex/ rgba / hlsa 等多种格式化

image.png

image.png

  • 支持透明度选择

image.png

更多内容,大家可以查看文档

使用

安装

npm install 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>

欢迎大家使用和给我提issues

感谢阅读