fix: 线条被异常操作修改宽度

This commit is contained in:
zxc 2024-08-06 23:40:02 +08:00
parent af34eb3fd6
commit 1a561df811
3 changed files with 14 additions and 0 deletions

View File

@ -108,6 +108,10 @@ defineExpose({
background-color: #f5f5f5;
border-color: #dcdcdc;
color: #b7b7b7;
input {
color: #b7b7b7;
}
}
.prefix, .suffix {

View File

@ -184,6 +184,10 @@ const handleFocus = (e: Event) => {
background-color: #f5f5f5;
border-color: #dcdcdc;
color: #b7b7b7;
input {
color: #b7b7b7;
}
}
.prefix, .suffix {

View File

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