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) {