From 6ad5ad7d329b9b0f5c74e01491d98acec28ebf1e Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 3 Jan 2024 21:14:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useCreateElement.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/useCreateElement.ts b/src/hooks/useCreateElement.ts index 195aed32..31d970f7 100644 --- a/src/hooks/useCreateElement.ts +++ b/src/hooks/useCreateElement.ts @@ -23,6 +23,11 @@ interface LineElementPosition { end: [number, number] } +interface CreateTextData { + content?: string + vertical?: boolean +} + export default () => { const mainStore = useMainStore() const slidesStore = useSlidesStore() @@ -177,11 +182,6 @@ export default () => { * @param position 位置大小信息 * @param content 文本内容 */ - - interface CreateTextData { - content?: string - vertical?: boolean - } const createTextElement = (position: CommonElementPosition, data?: CreateTextData) => { const { left, top, width, height } = position const content = data?.content || ''