From 9fb4a10549fca8185d083dfb4a9afc5848ad3734 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Thu, 5 Oct 2023 12:37:29 +0800 Subject: [PATCH] refactor: style fix --- src/components/Popover.vue | 9 +++ .../Editor/CanvasTool/TableGenerator.vue | 8 +-- .../Editor/Toolbar/ElementAnimationPanel.vue | 4 +- .../Editor/Toolbar/ElementPositionPanel.vue | 24 +++---- .../ElementStylePanel/AudioStylePanel.vue | 14 ++-- .../ChartStylePanel/index.vue | 6 +- .../ElementStylePanel/LatexStylePanel.vue | 6 +- .../ElementStylePanel/LineStylePanel.vue | 2 +- .../ElementStylePanel/MultiStylePanel.vue | 20 +++--- .../ElementStylePanel/ShapeStylePanel.vue | 48 ++++++-------- .../ElementStylePanel/TableStylePanel.vue | 6 +- .../ElementStylePanel/TextStylePanel.vue | 35 +++++----- .../ElementStylePanel/VideoStylePanel.vue | 4 +- src/views/Editor/Toolbar/SlideDesignPanel.vue | 65 ++++++++++--------- .../Editor/Toolbar/common/ColorButton.vue | 3 +- .../Toolbar/common/ElementColorMask.vue | 17 ++--- .../Editor/Toolbar/common/ElementOpacity.vue | 7 +- .../Editor/Toolbar/common/ElementOutline.vue | 18 ++--- .../Editor/Toolbar/common/ElementShadow.vue | 25 ++++--- .../Editor/Toolbar/common/TextColorButton.vue | 1 + .../Mobile/MobileEditor/ElementToolbar.vue | 4 +- 21 files changed, 162 insertions(+), 164 deletions(-) diff --git a/src/components/Popover.vue b/src/components/Popover.vue index b8043ec6..d5de2e52 100644 --- a/src/components/Popover.vue +++ b/src/components/Popover.vue @@ -58,6 +58,7 @@ onMounted(() => { offset: [0, 8], duration: 200, animation: 'scale', + theme: 'popover', onShow() { contentVisible.value = true }, @@ -84,5 +85,13 @@ onMounted(() => { border: 1px solid $borderColor; box-shadow: $boxShadow; border-radius: 2px; + font-size: 13px; +} + + + \ No newline at end of file diff --git a/src/views/Editor/CanvasTool/TableGenerator.vue b/src/views/Editor/CanvasTool/TableGenerator.vue index 5af71e31..7c75afca 100644 --- a/src/views/Editor/CanvasTool/TableGenerator.vue +++ b/src/views/Editor/CanvasTool/TableGenerator.vue @@ -26,21 +26,21 @@
-
行数:
+
行数:
-
列数:
+
列数:
diff --git a/src/views/Editor/Toolbar/ElementAnimationPanel.vue b/src/views/Editor/Toolbar/ElementAnimationPanel.vue index 44b6cc16..257fdb9d 100644 --- a/src/views/Editor/Toolbar/ElementAnimationPanel.vue +++ b/src/views/Editor/Toolbar/ElementAnimationPanel.vue @@ -101,7 +101,7 @@ />
- +
@@ -424,7 +424,7 @@ $attentionColor: #e8b76a; } .sequence-item { border: 1px solid $borderColor; - padding: 10px 6px; + padding: 8px; border-radius: $borderRadius; margin-bottom: 8px; transition: all .5s; diff --git a/src/views/Editor/Toolbar/ElementPositionPanel.vue b/src/views/Editor/Toolbar/ElementPositionPanel.vue index a594a1be..4d43162e 100644 --- a/src/views/Editor/Toolbar/ElementPositionPanel.vue +++ b/src/views/Editor/Toolbar/ElementPositionPanel.vue @@ -31,18 +31,18 @@ :step="5" :value="left" @update:value="value => updateLeft(value)" - style="flex: 4;" + style="width: 45%;" > -
+
- + @@ -100,7 +100,7 @@ />
- +
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue index bd988f7c..ea3c8532 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue @@ -1,6 +1,8 @@ - +
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue index 9b9feef7..f0e94734 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue @@ -21,7 +21,7 @@ @update:modelValue="value => updateLine({ color: value })" /> - +
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/MultiStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/MultiStylePanel.vue index e5e119d6..e5333c46 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/MultiStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/MultiStylePanel.vue @@ -9,7 +9,7 @@ @update:modelValue="value => updateFill(value)" /> - +
@@ -36,7 +36,7 @@ @update:modelValue="value => updateOutline({ color: value })" /> - +
@@ -52,7 +52,7 @@ -
- +
+ - + - + - + - + - + @@ -380,15 +380,9 @@ const emitRichTextCommand = (command: string, value?: string) => { align-items: center; margin-bottom: 10px; } -.font-select { - max-width: 50%; -} .font-size-btn { padding: 0; } -.slider { - flex: 3; -} .title { display: flex; justify-content: space-between; diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue index 8687a48f..661c5bc2 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue @@ -36,7 +36,7 @@ @update:modelValue="value => updateTextAttrs({ color: value })" /> - + @@ -47,7 +47,7 @@ @update:modelValue="value => updateTextAttrs({ backcolor: value })" /> - + @@ -160,7 +160,7 @@ @update:modelValue="value => updateTheme({ color: value })" /> - +
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue index 6aa47ee7..720cf836 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue @@ -15,7 +15,7 @@