From 1a561df8111ff72f44f4ecaf3c9e88c9147290b4 Mon Sep 17 00:00:00 2001 From: zxc <1171051090@qq.com> Date: Tue, 6 Aug 2024 23:40:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=BF=E6=9D=A1=E8=A2=AB=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=93=8D=E4=BD=9C=E4=BF=AE=E6=94=B9=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input.vue | 4 ++++ src/components/NumberInput.vue | 4 ++++ src/views/Editor/Toolbar/ElementPositionPanel.vue | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/src/components/Input.vue b/src/components/Input.vue index 2148679f..5596b7f2 100644 --- a/src/components/Input.vue +++ b/src/components/Input.vue @@ -108,6 +108,10 @@ defineExpose({ background-color: #f5f5f5; border-color: #dcdcdc; color: #b7b7b7; + + input { + color: #b7b7b7; + } } .prefix, .suffix { diff --git a/src/components/NumberInput.vue b/src/components/NumberInput.vue index ff3de2a3..2ee079be 100644 --- a/src/components/NumberInput.vue +++ b/src/components/NumberInput.vue @@ -184,6 +184,10 @@ const handleFocus = (e: Event) => { background-color: #f5f5f5; border-color: #dcdcdc; color: #b7b7b7; + + input { + color: #b7b7b7; + } } .prefix, .suffix { diff --git a/src/views/Editor/Toolbar/ElementPositionPanel.vue b/src/views/Editor/Toolbar/ElementPositionPanel.vue index 3642c91d..da32610e 100644 --- a/src/views/Editor/Toolbar/ElementPositionPanel.vue +++ b/src/views/Editor/Toolbar/ElementPositionPanel.vue @@ -200,6 +200,9 @@ const updateShapePathData = (width: number, height: number) => { } const updateWidth = (value: number) => { + if (!handleElement.value) return + if (handleElement.value.type === 'line' || isVerticalText.value) return + let h = height.value if (fixedRatio.value) { @@ -222,6 +225,9 @@ const updateWidth = (value: number) => { } const updateHeight = (value: number) => { + if (!handleElement.value) return + if (handleElement.value.type === 'line' || handleElement.value.type === 'table' || isHorizontalText.value) return + let w = width.value if (fixedRatio.value) {