From ef1876869cbc8385ae9977a2f2f078cd2b9539d2 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sun, 6 Jun 2021 15:34:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=B8=80=E4=BA=9B=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=92=8C=E5=BD=A2=E7=8A=B6=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ColorPicker/EditableInput.vue | 9 +++++++++ src/configs/shapes.ts | 12 ++++++++++++ src/views/Editor/CanvasTool/TableGenerator.vue | 1 + src/views/Editor/EditorHeader/index.vue | 6 ++++++ 4 files changed, 28 insertions(+) diff --git a/src/components/ColorPicker/EditableInput.vue b/src/components/ColorPicker/EditableInput.vue index 73a2eec4..2bd3462f 100644 --- a/src/components/ColorPicker/EditableInput.vue +++ b/src/components/ColorPicker/EditableInput.vue @@ -48,6 +48,15 @@ export default defineComponent({ overflow: hidden; text-align: center; font-size: 14px; + + &::after { + content: '#'; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + color: #999; + } } .input-content { width: 100%; diff --git a/src/configs/shapes.ts b/src/configs/shapes.ts index 13575929..4482f289 100644 --- a/src/configs/shapes.ts +++ b/src/configs/shapes.ts @@ -49,6 +49,10 @@ export const SHAPE_LIST = [ viewBox: 200, path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z' }, + { + viewBox: 200, + path: 'M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z', + }, { viewBox: 200, path: 'M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z' @@ -173,6 +177,14 @@ export const SHAPE_LIST = [ viewBox: 200, path: 'M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z' }, + { + viewBox: 200, + path: 'M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z', + }, + { + viewBox: 200, + path: 'M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z', + }, ], }, diff --git a/src/views/Editor/CanvasTool/TableGenerator.vue b/src/views/Editor/CanvasTool/TableGenerator.vue index c6161e0a..c3d7fc4c 100644 --- a/src/views/Editor/CanvasTool/TableGenerator.vue +++ b/src/views/Editor/CanvasTool/TableGenerator.vue @@ -109,6 +109,7 @@ export default defineComponent({ font-size: 12px; display: flex; justify-content: space-between; + user-select: none; .right { cursor: pointer; diff --git a/src/views/Editor/EditorHeader/index.vue b/src/views/Editor/EditorHeader/index.vue index e5b964cc..3a4df781 100644 --- a/src/views/Editor/EditorHeader/index.vue +++ b/src/views/Editor/EditorHeader/index.vue @@ -28,6 +28,7 @@ @@ -98,6 +99,10 @@ export default defineComponent({ const hotkeyDrawerVisible = ref(false) const exportDialogVisible = ref(false) + const goIssues = () => { + window.open('https://github.com/pipipi-pikachu/PPTist/issues') + } + return { enterScreening, enterScreeningFromStart, @@ -110,6 +115,7 @@ export default defineComponent({ resetSlides, hotkeyDrawerVisible, exportDialogVisible, + goIssues, } }, })