From bd7f7b9948c1f338c5f0baa1c8d1344c429f69c6 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Sat, 26 Dec 2020 09:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Canvas}/EditableElement.vue | 284 +++++++++--------- src/views/Editor/Canvas/index.vue | 2 +- src/views/Editor/Thumbnails/index.vue | 2 +- .../{_element => Screen}/ScreenElement.vue | 4 +- src/views/Screen/ScreenSlide.vue | 2 +- .../ThumbnailSlide/ThumbnailElement.vue} | 4 +- .../ThumbnailSlide/index.vue} | 6 +- .../element}/ElementOutline.vue | 138 ++++----- .../ImageElement/BaseImageElement.vue | 2 +- .../ImageElement/ImageEllipseOutline.vue | 146 ++++----- .../ImageElement/ImagePolygonOutline.vue | 148 ++++----- .../ImageElement/ImageRectOutline.vue | 154 +++++----- .../element}/ImageElement/index.vue | 2 +- .../element}/TextElement/BaseTextElement.vue | 4 +- .../element}/TextElement/index.vue | 4 +- .../element}/hooks/useElementOutline.ts | 26 +- .../element}/hooks/useElementShadow.ts | 26 +- 17 files changed, 477 insertions(+), 477 deletions(-) rename src/views/{_element => Editor/Canvas}/EditableElement.vue (94%) rename src/views/{_element => Screen}/ScreenElement.vue (89%) rename src/views/{_element/BaseElement.vue => components/ThumbnailSlide/ThumbnailElement.vue} (82%) rename src/views/{ThumbnailSlide.vue => components/ThumbnailSlide/index.vue} (93%) rename src/views/{_element => components/element}/ElementOutline.vue (90%) rename src/views/{_element => components/element}/ImageElement/BaseImageElement.vue (98%) rename src/views/{_element => components/element}/ImageElement/ImageEllipseOutline.vue (90%) rename src/views/{_element => components/element}/ImageElement/ImagePolygonOutline.vue (90%) rename src/views/{_element => components/element}/ImageElement/ImageRectOutline.vue (90%) rename src/views/{_element => components/element}/ImageElement/index.vue (98%) rename src/views/{_element => components/element}/TextElement/BaseTextElement.vue (90%) rename src/views/{_element => components/element}/TextElement/index.vue (94%) rename src/views/{_element => components/element}/hooks/useElementOutline.ts (97%) rename src/views/{_element => components/element}/hooks/useElementShadow.ts (95%) diff --git a/src/views/_element/EditableElement.vue b/src/views/Editor/Canvas/EditableElement.vue similarity index 94% rename from src/views/_element/EditableElement.vue rename to src/views/Editor/Canvas/EditableElement.vue index d30c4b3..1e84b44 100644 --- a/src/views/_element/EditableElement.vue +++ b/src/views/Editor/Canvas/EditableElement.vue @@ -1,143 +1,143 @@ - - - \ No newline at end of file diff --git a/src/views/Editor/Canvas/index.vue b/src/views/Editor/Canvas/index.vue index 8be4f01..98a28fe 100644 --- a/src/views/Editor/Canvas/index.vue +++ b/src/views/Editor/Canvas/index.vue @@ -95,7 +95,7 @@ import useCopyAndPasteElement from '@/hooks/useCopyAndPasteElement' import useSelectAllElement from '@/hooks/useSelectAllElement' import useScaleCanvas from '@/hooks/useScaleCanvas' -import EditableElement from '@/views/_element/EditableElement.vue' +import EditableElement from './EditableElement.vue' import MouseSelection from './MouseSelection.vue' import SlideBackground from './SlideBackground.vue' import AlignmentLine from './AlignmentLine.vue' diff --git a/src/views/Editor/Thumbnails/index.vue b/src/views/Editor/Thumbnails/index.vue index f5c3834..da3efd9 100644 --- a/src/views/Editor/Thumbnails/index.vue +++ b/src/views/Editor/Thumbnails/index.vue @@ -42,7 +42,7 @@ import { fillDigit } from '@/utils/common' import { ContextmenuItem } from '@/components/Contextmenu/types' import useSlideHandler from '@/hooks/useSlideHandler' -import ThumbnailSlide from '@/views/ThumbnailSlide.vue' +import ThumbnailSlide from '@/views/components/ThumbnailSlide/index.vue' export default defineComponent({ name: 'thumbnails', diff --git a/src/views/_element/ScreenElement.vue b/src/views/Screen/ScreenElement.vue similarity index 89% rename from src/views/_element/ScreenElement.vue rename to src/views/Screen/ScreenElement.vue index fda0f58..2b1c315 100644 --- a/src/views/_element/ScreenElement.vue +++ b/src/views/Screen/ScreenElement.vue @@ -19,8 +19,8 @@ import { useStore } from 'vuex' import { State } from '@/store' import { PPTElement, Slide } from '@/types/slides' -import BaseImageElement from './ImageElement/BaseImageElement.vue' -import BaseTextElement from './TextElement/BaseTextElement.vue' +import BaseImageElement from '@/views/components/element/ImageElement/BaseImageElement.vue' +import BaseTextElement from '@/views/components/element/TextElement/BaseTextElement.vue' export default defineComponent({ name: 'screen-element', diff --git a/src/views/Screen/ScreenSlide.vue b/src/views/Screen/ScreenSlide.vue index b8065fa..fb8cece 100644 --- a/src/views/Screen/ScreenSlide.vue +++ b/src/views/Screen/ScreenSlide.vue @@ -25,7 +25,7 @@ import { Slide } from '@/types/slides' import { VIEWPORT_SIZE, VIEWPORT_ASPECT_RATIO } from '@/configs/canvas' import useSlideBackgroundStyle from '@/hooks/useSlideBackgroundStyle' -import ScreenElement from '@/views/_element/ScreenElement.vue' +import ScreenElement from './ScreenElement.vue' export default defineComponent({ name: 'screen-slide', diff --git a/src/views/_element/BaseElement.vue b/src/views/components/ThumbnailSlide/ThumbnailElement.vue similarity index 82% rename from src/views/_element/BaseElement.vue rename to src/views/components/ThumbnailSlide/ThumbnailElement.vue index 147622c..cc27684 100644 --- a/src/views/_element/BaseElement.vue +++ b/src/views/components/ThumbnailSlide/ThumbnailElement.vue @@ -14,8 +14,8 @@ import { computed, defineComponent, PropType } from 'vue' import { PPTElement } from '@/types/slides' -import BaseImageElement from './ImageElement/BaseImageElement.vue' -import BaseTextElement from './TextElement/BaseTextElement.vue' +import BaseImageElement from '@/views/components/element/ImageElement/BaseImageElement.vue' +import BaseTextElement from '@/views/components/element/TextElement/BaseTextElement.vue' export default defineComponent({ name: 'base-element', diff --git a/src/views/ThumbnailSlide.vue b/src/views/components/ThumbnailSlide/index.vue similarity index 93% rename from src/views/ThumbnailSlide.vue rename to src/views/components/ThumbnailSlide/index.vue index 71eeaf5..35bd54f 100644 --- a/src/views/ThumbnailSlide.vue +++ b/src/views/components/ThumbnailSlide/index.vue @@ -14,7 +14,7 @@ }" >
- - - - - - - - - \ No newline at end of file diff --git a/src/views/_element/ImageElement/BaseImageElement.vue b/src/views/components/element/ImageElement/BaseImageElement.vue similarity index 98% rename from src/views/_element/ImageElement/BaseImageElement.vue rename to src/views/components/element/ImageElement/BaseImageElement.vue index adf8f69..5219159 100644 --- a/src/views/_element/ImageElement/BaseImageElement.vue +++ b/src/views/components/element/ImageElement/BaseImageElement.vue @@ -65,7 +65,7 @@ import ImageRectOutline from './ImageRectOutline.vue' import ImageEllipseOutline from './ImageEllipseOutline.vue' import ImagePolygonOutline from './ImagePolygonOutline.vue' -import useElementShadow from '@/views/_element/hooks/useElementShadow' +import useElementShadow from '@/views/components/element/hooks/useElementShadow' export default defineComponent({ name: 'base-element-image', diff --git a/src/views/_element/ImageElement/ImageEllipseOutline.vue b/src/views/components/element/ImageElement/ImageEllipseOutline.vue similarity index 90% rename from src/views/_element/ImageElement/ImageEllipseOutline.vue rename to src/views/components/element/ImageElement/ImageEllipseOutline.vue index 1c05129..92b56b9 100644 --- a/src/views/_element/ImageElement/ImageEllipseOutline.vue +++ b/src/views/components/element/ImageElement/ImageEllipseOutline.vue @@ -1,74 +1,74 @@ - - - - - \ No newline at end of file diff --git a/src/views/_element/ImageElement/ImagePolygonOutline.vue b/src/views/components/element/ImageElement/ImagePolygonOutline.vue similarity index 90% rename from src/views/_element/ImageElement/ImagePolygonOutline.vue rename to src/views/components/element/ImageElement/ImagePolygonOutline.vue index 7e02e5f..ffc10c3 100644 --- a/src/views/_element/ImageElement/ImagePolygonOutline.vue +++ b/src/views/components/element/ImageElement/ImagePolygonOutline.vue @@ -1,75 +1,75 @@ - - - - - \ No newline at end of file diff --git a/src/views/_element/ImageElement/ImageRectOutline.vue b/src/views/components/element/ImageElement/ImageRectOutline.vue similarity index 90% rename from src/views/_element/ImageElement/ImageRectOutline.vue rename to src/views/components/element/ImageElement/ImageRectOutline.vue index d360878..18b56b9 100644 --- a/src/views/_element/ImageElement/ImageRectOutline.vue +++ b/src/views/components/element/ImageElement/ImageRectOutline.vue @@ -1,78 +1,78 @@ - - - - - \ No newline at end of file diff --git a/src/views/_element/ImageElement/index.vue b/src/views/components/element/ImageElement/index.vue similarity index 98% rename from src/views/_element/ImageElement/index.vue rename to src/views/components/element/ImageElement/index.vue index b9e4e68..61b3748 100644 --- a/src/views/_element/ImageElement/index.vue +++ b/src/views/components/element/ImageElement/index.vue @@ -64,7 +64,7 @@ import { computed, defineComponent, PropType } from 'vue' import { PPTImageElement } from '@/types/slides' import { ContextmenuItem } from '@/components/Contextmenu/types' import { CLIPPATHS, ClipPathTypes } from '@/configs/imageClip' -import useElementShadow from '@/views/_element/hooks/useElementShadow' +import useElementShadow from '@/views/components/element/hooks/useElementShadow' import ImageRectOutline from './ImageRectOutline.vue' import ImageEllipseOutline from './ImageEllipseOutline.vue' diff --git a/src/views/_element/TextElement/BaseTextElement.vue b/src/views/components/element/TextElement/BaseTextElement.vue similarity index 90% rename from src/views/_element/TextElement/BaseTextElement.vue rename to src/views/components/element/TextElement/BaseTextElement.vue index b4a3697..bc04574 100644 --- a/src/views/_element/TextElement/BaseTextElement.vue +++ b/src/views/components/element/TextElement/BaseTextElement.vue @@ -28,9 +28,9 @@