Skip to content

Commit 121ff7a

Browse files
committed
build: v3.1.1
1 parent 94d21d5 commit 121ff7a

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "color-gradient-picker-vue3",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"type": "module",
55
"author": "June",
66
"description": "A modern color and gradient picker component for Vue 3 with TypeScript support",

lib/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ColorPicker
1212
v-model:value="curColor"
1313
:preset-colors="presetColors"
14-
:width="300"
14+
:width="320"
1515
@change="onChange"
1616
/>
1717

lib/src/components/ColorPicker/components/GradientBar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
<script lang="ts" setup>
3232
import { getHandleValue } from '@/utils/utils'
33-
import { throttle } from 'lodash-es'
3433
3534
const { colorState, handleGradient, addPoint, setSelectColorIdx } = inject(
3635
'colorProvider',

lib/src/components/ColorPicker/components/Operation.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@click="toggleShowAdvancedControl"
3636
/>
3737
</div> -->
38-
<div class="cpg-controls-item-btn cpg-cursor-pointer">
38+
<!-- <div class="cpg-controls-item-btn cpg-cursor-pointer">
3939
<span
4040
:class="
4141
showInputTypes
@@ -45,7 +45,7 @@
4545
icon=""
4646
@click="handleXise"
4747
/>
48-
</div>
48+
</div> -->
4949
<div
5050
class="cpg-controls-item-btn cpg-cursor-pointer"
5151
:class="{ 'cpg-control-active': showInputTypes }"
@@ -113,7 +113,7 @@ const handleXise = debounce(function () {
113113
return
114114
}
115115
const root = document.getElementById('app')
116-
console.log(root, 'xxxxsss')
116+
117117
html2canvas(root!).then((canvas: any) => {
118118
const blankCanvas = document.createElement('canvas')
119119
const ctx = blankCanvas.getContext('2d', { willReadFrequently: true })

lib/src/constants/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { InputType } from '@/enums'
1010
export const inputTypes: InputType[] = [
1111
InputType.rgb,
1212
InputType.hsl,
13-
InputType.hsv,
14-
InputType.cmyk,
13+
// InputType.hsv,
14+
// InputType.cmyk,
1515
]
1616

1717
export const config = {

0 commit comments

Comments
 (0)