From 01874ffd74ee73a266ded106cd36b4b0fe4f689f Mon Sep 17 00:00:00 2001 From: "yuekin.wang" Date: Thu, 21 Dec 2023 16:38:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=89=B2=E6=9D=BF=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/colorPicker/Area/Hue/index.vue | 116 ++-- .../colorPicker/Area/Picker/index.vue | 155 ++--- src/components/colorPicker/Area/index.vue | 4 +- src/components/colorPicker/Gradient/index.vue | 625 +++++++++--------- src/utils/color/color.ts | 1 + .../panel/rightPanel/attrs/canvasAttr.vue | 231 +++---- 6 files changed, 579 insertions(+), 553 deletions(-) diff --git a/src/components/colorPicker/Area/Hue/index.vue b/src/components/colorPicker/Area/Hue/index.vue index 3a1925e..32f0e66 100644 --- a/src/components/colorPicker/Area/Hue/index.vue +++ b/src/components/colorPicker/Area/Hue/index.vue @@ -1,75 +1,81 @@ diff --git a/src/components/colorPicker/Area/Picker/index.vue b/src/components/colorPicker/Area/Picker/index.vue index f7f7a53..042ca53 100644 --- a/src/components/colorPicker/Area/Picker/index.vue +++ b/src/components/colorPicker/Area/Picker/index.vue @@ -1,93 +1,100 @@ diff --git a/src/components/colorPicker/Area/index.vue b/src/components/colorPicker/Area/index.vue index dc98329..2fcba01 100644 --- a/src/components/colorPicker/Area/index.vue +++ b/src/components/colorPicker/Area/index.vue @@ -24,7 +24,7 @@ :update-color="updateColor" /> -
+
diff --git a/src/components/colorPicker/Gradient/index.vue b/src/components/colorPicker/Gradient/index.vue index bde9f7d..9a8b95e 100644 --- a/src/components/colorPicker/Gradient/index.vue +++ b/src/components/colorPicker/Gradient/index.vue @@ -1,362 +1,373 @@ - diff --git a/src/utils/color/color.ts b/src/utils/color/color.ts index 1a561cb..54b12ca 100644 --- a/src/utils/color/color.ts +++ b/src/utils/color/color.ts @@ -399,6 +399,7 @@ export class Color { } static hex2color(hex: string, a: number) { + console.log('in it') const color = tinyColor(hex); color.setAlpha(a); return color.toHexString(); diff --git a/src/views/Editor/layouts/panel/rightPanel/attrs/canvasAttr.vue b/src/views/Editor/layouts/panel/rightPanel/attrs/canvasAttr.vue index 531c863..5aacfbb 100644 --- a/src/views/Editor/layouts/panel/rightPanel/attrs/canvasAttr.vue +++ b/src/views/Editor/layouts/panel/rightPanel/attrs/canvasAttr.vue @@ -1,138 +1,139 @@