mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 线条被异常操作修改宽度
This commit is contained in:
parent
af34eb3fd6
commit
1a561df811
@ -108,6 +108,10 @@ defineExpose({
|
|||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-color: #dcdcdc;
|
border-color: #dcdcdc;
|
||||||
color: #b7b7b7;
|
color: #b7b7b7;
|
||||||
|
|
||||||
|
input {
|
||||||
|
color: #b7b7b7;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prefix, .suffix {
|
.prefix, .suffix {
|
||||||
|
@ -184,6 +184,10 @@ const handleFocus = (e: Event) => {
|
|||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-color: #dcdcdc;
|
border-color: #dcdcdc;
|
||||||
color: #b7b7b7;
|
color: #b7b7b7;
|
||||||
|
|
||||||
|
input {
|
||||||
|
color: #b7b7b7;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prefix, .suffix {
|
.prefix, .suffix {
|
||||||
|
@ -200,6 +200,9 @@ const updateShapePathData = (width: number, height: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateWidth = (value: number) => {
|
const updateWidth = (value: number) => {
|
||||||
|
if (!handleElement.value) return
|
||||||
|
if (handleElement.value.type === 'line' || isVerticalText.value) return
|
||||||
|
|
||||||
let h = height.value
|
let h = height.value
|
||||||
|
|
||||||
if (fixedRatio.value) {
|
if (fixedRatio.value) {
|
||||||
@ -222,6 +225,9 @@ const updateWidth = (value: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateHeight = (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
|
let w = width.value
|
||||||
|
|
||||||
if (fixedRatio.value) {
|
if (fixedRatio.value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user