From 1e03c658aeaf05fee45cc6d91e0bd46dc7efa86f Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 27 Dec 2023 20:37:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=AB=96=E5=90=91?= =?UTF-8?q?=E7=BA=B8=E5=BC=A0=E5=B0=BA=E5=AF=B8(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useExport.ts | 4 ++++ src/views/Editor/Toolbar/SlideDesignPanel.vue | 1 + 2 files changed, 5 insertions(+) diff --git a/src/hooks/useExport.ts b/src/hooks/useExport.ts index 5f6c8b03..5248a39c 100644 --- a/src/hooks/useExport.ts +++ b/src/hooks/useExport.ts @@ -363,6 +363,10 @@ export default () => { pptx.defineLayout({ name: 'A3', width: 10, height: 7.0710678 }) pptx.layout = 'A3' } + else if (viewportRatio.value === 1.41421356) { + pptx.defineLayout({ name: 'A3_V', width: 10, height: 14.1421356 }) + pptx.layout = 'A3_V' + } else pptx.layout = 'LAYOUT_16x9' if (masterOverwrite) { diff --git a/src/views/Editor/Toolbar/SlideDesignPanel.vue b/src/views/Editor/Toolbar/SlideDesignPanel.vue index cd319301..63f5fd71 100644 --- a/src/views/Editor/Toolbar/SlideDesignPanel.vue +++ b/src/views/Editor/Toolbar/SlideDesignPanel.vue @@ -113,6 +113,7 @@ { label: '宽屏 16 : 10', value: 0.625 }, { label: '标准 4 : 3', value: 0.75 }, { label: '纸张 A3 / A4', value: 0.70710678 }, + { label: '竖向 A3 / A4', value: 1.41421356 }, ]" />