From 0701663e5eac5e85ef26c25abf8f178772eea6f6 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sun, 16 Oct 2022 12:58:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0A3/A4=E7=9A=84?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E7=94=BB=E5=B8=83=E5=B0=BA=E5=AF=B8?= 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 a5f52dc2..212da26d 100644 --- a/src/hooks/useExport.ts +++ b/src/hooks/useExport.ts @@ -380,6 +380,10 @@ export default () => { if (viewportRatio.value === 0.625) pptx.layout = 'LAYOUT_16x10' else if (viewportRatio.value === 0.75) pptx.layout = 'LAYOUT_4x3' + else if (viewportRatio.value === 0.70710678) { + pptx.defineLayout({ name: 'A3', width: 10, height: 7.0710678 }) + pptx.layout = 'A3' + } else pptx.layout = 'LAYOUT_16x9' if (masterOverwrite) { diff --git a/src/views/Editor/Toolbar/SlideDesignPanel.vue b/src/views/Editor/Toolbar/SlideDesignPanel.vue index f52f7cef..1dd2a9c3 100644 --- a/src/views/Editor/Toolbar/SlideDesignPanel.vue +++ b/src/views/Editor/Toolbar/SlideDesignPanel.vue @@ -103,6 +103,7 @@ 宽屏 16 : 9 宽屏 16 :10 标准 4 :3 + A3 / A4