From 6a021e8705f58c937c25430fea581063c3ad7624 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sun, 19 Jan 2025 10:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=90=E5=8F=98=E5=8F=96=E8=89=B2?= =?UTF-8?q?=E5=99=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GradientBar.vue | 35 +++++++++---------- .../ElementStylePanel/ShapeStylePanel.vue | 5 +++ src/views/Editor/Toolbar/SlideDesignPanel.vue | 9 +++-- 3 files changed, 29 insertions(+), 20 deletions(-) diff --git a/src/components/GradientBar.vue b/src/components/GradientBar.vue index 48185cb4..3b465c2f 100644 --- a/src/components/GradientBar.vue +++ b/src/components/GradientBar.vue @@ -2,25 +2,26 @@
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue index 4677f35b..365de384 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue @@ -54,6 +54,7 @@
@@ -182,6 +183,10 @@ watch(handleElement, () => { textAlign.value = handleElement.value?.text?.align || 'middle' }, { deep: true, immediate: true }) +watch(handleElementId, () => { + currentGradientIndex.value = 0 +}) + const { addHistorySnapshot } = useHistorySnapshot() const { toggleShapeFormatPainter } = useShapeFormatPainter() diff --git a/src/views/Editor/Toolbar/SlideDesignPanel.vue b/src/views/Editor/Toolbar/SlideDesignPanel.vue index ae8d986b..eafaa4e6 100644 --- a/src/views/Editor/Toolbar/SlideDesignPanel.vue +++ b/src/views/Editor/Toolbar/SlideDesignPanel.vue @@ -62,6 +62,7 @@
@@ -298,7 +299,7 @@