From efce656fa181b1a7b3f742b2cf79853d25578fec Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Thu, 28 Sep 2023 21:53:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=BF=E6=8D=A2Slider=E3=80=81Sw?= =?UTF-8?q?itch=E3=80=81Checkbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/global.scss | 1 - src/components/Button.vue | 2 +- src/components/Checkbox.vue | 2 +- src/components/Input.vue | 1 - src/components/LaTeXEditor/index.vue | 1 - src/components/Slider.vue | 68 +++++++++++-------- src/components/Switch.vue | 17 +---- src/views/Editor/CanvasTool/index.vue | 4 +- src/views/Editor/EditorHeader/index.vue | 4 +- src/views/Editor/ExportDialog/ExportImage.vue | 7 +- src/views/Editor/ExportDialog/ExportPDF.vue | 5 +- src/views/Editor/ExportDialog/ExportPPTX.vue | 16 ++--- .../ExportDialog/ExportSpecificFile.vue | 3 +- src/views/Editor/SearchPanel.vue | 4 +- .../ElementStylePanel/AudioStylePanel.vue | 11 +-- .../ChartStylePanel/index.vue | 28 ++++---- .../ElementStylePanel/ShapeStylePanel.vue | 4 +- .../ElementStylePanel/TableStylePanel.vue | 24 +++---- .../Editor/Toolbar/MultiPositionPanel.vue | 4 +- src/views/Editor/Toolbar/SlideDesignPanel.vue | 6 +- .../Toolbar/common/ElementColorMask.vue | 16 ++--- .../Editor/Toolbar/common/ElementFilter.vue | 11 +-- .../Editor/Toolbar/common/ElementOpacity.vue | 5 +- .../Editor/Toolbar/common/ElementOutline.vue | 6 +- .../Editor/Toolbar/common/ElementShadow.vue | 16 ++--- src/views/Screen/WritingBoardTool.vue | 6 +- 26 files changed, 123 insertions(+), 149 deletions(-) diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index 7be371f9..6c1ba010 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -48,7 +48,6 @@ body { } body { - line-height: 1; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } diff --git a/src/components/Button.vue b/src/components/Button.vue index 7137a8c0..607edffd 100644 --- a/src/components/Button.vue +++ b/src/components/Button.vue @@ -47,7 +47,7 @@ const handleClick = () => { color: $textColor; border-radius: $borderRadius; user-select: none; - letter-spacing: 2px; + letter-spacing: 1px; cursor: pointer; &.default { diff --git a/src/components/Checkbox.vue b/src/components/Checkbox.vue index 250b17df..4cc6703c 100644 --- a/src/components/Checkbox.vue +++ b/src/components/Checkbox.vue @@ -73,7 +73,7 @@ const handleChange = (e: Event) => { height: 16px; background-color: #fff; vertical-align: middle; - transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46); + transition: border-color .15s cubic-bezier(.71, -.46, .29, 1.46), background-color .15s cubic-bezier(.71, -.46, .29, 1.46); z-index: 1; &::after { diff --git a/src/components/Input.vue b/src/components/Input.vue index 5a583de5..d99e9642 100644 --- a/src/components/Input.vue +++ b/src/components/Input.vue @@ -52,7 +52,6 @@ const focused = ref(false) const handleInput = (e: Event) => { emit('update:value', (e.target as HTMLInputElement).value) - emit('input', e) } const handleBlur = (e: Event) => { focused.value = false diff --git a/src/components/LaTeXEditor/index.vue b/src/components/LaTeXEditor/index.vue index caf02fd5..7e128878 100644 --- a/src/components/LaTeXEditor/index.vue +++ b/src/components/LaTeXEditor/index.vue @@ -220,7 +220,6 @@ const insertSymbol = (latex: string) => { margin-bottom: 5px; } .formula-item-content { - width: 246px; height: 60px; padding: 5px; display: flex; diff --git a/src/components/Slider.vue b/src/components/Slider.vue index 82fcf09e..b965f541 100644 --- a/src/components/Slider.vue +++ b/src/components/Slider.vue @@ -7,15 +7,15 @@