From 8e72b50c68310b840efd8261f11f975081c745ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Mon, 9 Dec 2024 10:16:17 +0800 Subject: [PATCH] =?UTF-8?q?ppts=EF=BC=9A=E5=9B=BE=E7=89=87=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=20=E8=A3=81=E5=89=AA=E9=80=BB=E8=BE=91=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/element/ImageElement/ImageClipHandler.vue | 7 +++---- .../src/views/components/element/ImageElement/index.vue | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/ImageClipHandler.vue b/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/ImageClipHandler.vue index 14065e6..09370da 100644 --- a/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/ImageClipHandler.vue +++ b/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/ImageClipHandler.vue @@ -154,15 +154,13 @@ const topImgWrapperPositionStyle = computed(() => { const topImgPositionStyle = computed(() => { const bottomWidth = imgPosition.value.width const bottomHeight = imgPosition.value.height - console.log("底层图片位置大小(遮罩区域图片)", imgPosition.value) const { top, left, width, height } = topImgWrapperPosition.value - console.log("width", ((bottomWidth / width * 100) - (left * (100 / width))) + '%') - console.log("height", bottomHeight / height * 100 + '%') + return { left: -left * (100 / width) + '%', top: -top * (100 / height) + '%', - width: ((bottomWidth / width * 100) - (left * (100 / width))) + '%' , + width: bottomWidth / width * 100 + '%' , height: bottomHeight / height * 100 + '%', } }) @@ -540,6 +538,7 @@ const edgePoints = [ img { position: absolute; + max-width: none !important; } } } diff --git a/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/index.vue b/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/index.vue index 670f486..f785359 100644 --- a/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/index.vue +++ b/src/renderer/src/AixPPTist/src/views/components/element/ImageElement/index.vue @@ -183,6 +183,7 @@ const handleClip = (data: ImageClipedEmitData | null) => { } img { position: absolute; + max-width: none !important; // 防止图片被压缩 } } .color-mask {