0.1.20 • Published 2 years ago

color-picker-v2 v0.1.20

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

引入文件

<colorPicker :isRound="true" :isColor="true" :location="1" :customLocation="{top:'0px',left:'0px'}" @chooseColor="chooseColor" />
<script>
  import colorPicker from 'color-picker-v2'
  import 'color-picker-v2/color-picker/color-picker.css'
  Vue.use(colorPicker)
</script>

参数

参数说明类型默认值
isRound是否圆点booleantrue
isColor是否直接显示颜色选择器booleantrue
location颜色选择器位于圆点位置(1:左下,依次顺势针)number1
customLocation自定义颜色选择器的位置,权重比 location 高object{top:'0px',left:'0px'}

事件

事件说明类型
chooseColor点击颜色回调Function

版本更新日志

版本 v0.1.20

1. 调整精确度
2. 增加滑动效果
3. 增加复制功能

版本 v0.1.17

1. 增加 isRound ,isColor ,location ,customLocation ,chooseColor

版本 v0.1.15

1. 最基础版本:白,灰,银,黑四纯色,暂时不能在色板中显示
0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago