From 3e45ce0b14a561d1fa2ce64a5388c4c1dacf9b97 Mon Sep 17 00:00:00 2001 From: lhyUnited Date: Wed, 21 Apr 2021 14:04:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0rotate=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=20fix:=20#23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useCreateElement.ts | 3 +++ src/mocks/index.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/hooks/useCreateElement.ts b/src/hooks/useCreateElement.ts index 585df8f9..6852cb43 100644 --- a/src/hooks/useCreateElement.ts +++ b/src/hooks/useCreateElement.ts @@ -63,6 +63,7 @@ export default () => { left: (VIEWPORT_SIZE - width) / 2, top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2, fixedRatio: true, + rotate: 0 }) }) } @@ -147,6 +148,7 @@ export default () => { width, height, content, + rotate: 0 }) } @@ -168,6 +170,7 @@ export default () => { path: data.path, fill: themeColor.value, fixedRatio: false, + rotate: 0 }) } diff --git a/src/mocks/index.ts b/src/mocks/index.ts index 1637d919..d28f9b28 100644 --- a/src/mocks/index.ts +++ b/src/mocks/index.ts @@ -16,6 +16,7 @@ export const slides: Slide[] = [ fill: '#d14424', fixedRatio: false, opacity: 0.7, + rotate: 0 }, { type: 'shape', @@ -32,6 +33,7 @@ export const slides: Slide[] = [ x: 180, y: 0, }, + rotate: 0 }, { type: 'text', @@ -41,6 +43,7 @@ export const slides: Slide[] = [ width: 585, height: 188, content: '

PPTIST

', + rotate: 0 }, { type: 'text', @@ -50,6 +53,7 @@ export const slides: Slide[] = [ width: 585, height: 56, content: '

基于 Vue 3.x + TypeScript 的在线演示文稿应用

', + rotate: 0 }, { type: 'line',