From 9c233b0ce8fbd8cb47cf60c0c07ab4d8bad96f50 Mon Sep 17 00:00:00 2001
From: pipipi-pikachu <1171051090@qq.com>
Date: Mon, 4 Jan 2021 22:44:14 +0800
Subject: [PATCH] update
---
src/configs/animation.ts | 8 +-
src/configs/element.ts | 9 +
src/views/Editor/CanvasTool/index.vue | 4 +-
src/views/Editor/Thumbnails/index.vue | 8 +-
.../Editor/Toolbar/ElementAnimationPanel.vue | 194 +++++++++++++++++-
.../ElementStylePanel/TextStylePanel.vue | 6 +
src/views/Editor/Toolbar/SlideStylePanel.vue | 2 +-
7 files changed, 217 insertions(+), 14 deletions(-)
diff --git a/src/configs/animation.ts b/src/configs/animation.ts
index a90f2968..9019b467 100644
--- a/src/configs/animation.ts
+++ b/src/configs/animation.ts
@@ -34,10 +34,10 @@ export const ANIMATIONS = [
name: '旋转',
children: [
{ name: '旋转进入', value: 'rotateIn' },
- { name: '基于左下旋转进入', value: 'rotateInDownLeft' },
- { name: '基于右下旋转进入', value: 'rotateInDownRight' },
- { name: '基于左上旋转进入', value: 'rotateInUpLeft' },
- { name: '基于右上旋转进入', value: 'rotateInUpRight' },
+ { name: '绕左下旋转进入', value: 'rotateInDownLeft' },
+ { name: '绕右下旋转进入', value: 'rotateInDownRight' },
+ { name: '绕左上旋转进入', value: 'rotateInUpLeft' },
+ { name: '绕右上旋转进入', value: 'rotateInUpRight' },
],
},
{
diff --git a/src/configs/element.ts b/src/configs/element.ts
index 4bb01e66..54c347ca 100644
--- a/src/configs/element.ts
+++ b/src/configs/element.ts
@@ -1,5 +1,14 @@
const DEFAULT_COLOR = '#41464b'
+export const ELEMENT_TYPE = {
+ 'text': '文本',
+ 'image': '图片',
+ 'shape': '形状',
+ 'line': '线条',
+ 'chart': '图表',
+ 'table': '表格',
+}
+
export const DEFAULT_TEXT = {
content: '请输入内容',
}
diff --git a/src/views/Editor/CanvasTool/index.vue b/src/views/Editor/CanvasTool/index.vue
index 84069356..782e93c6 100644
--- a/src/views/Editor/CanvasTool/index.vue
+++ b/src/views/Editor/CanvasTool/index.vue
@@ -11,13 +11,13 @@
-
+
drawShape(shape)" />
-
+
drawLine(line)" />
diff --git a/src/views/Editor/Thumbnails/index.vue b/src/views/Editor/Thumbnails/index.vue
index 0ae3e882..146b2760 100644
--- a/src/views/Editor/Thumbnails/index.vue
+++ b/src/views/Editor/Thumbnails/index.vue
@@ -5,7 +5,7 @@
v-click-outside="() => setThumbnailsFocus(false)"
>
+ 添加幻灯片
-
-
+
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
index 9f9675a3..92e0c476 100644
--- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
+++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
@@ -50,6 +50,7 @@
行间距:
+
Jack
Lucy
Disabled
@@ -59,6 +60,7 @@
字间距:
+
Jack
Lucy
Disabled
@@ -96,6 +98,8 @@ import {
AlignRightOutlined,
OrderedListOutlined,
UnorderedListOutlined,
+ ColumnHeightOutlined,
+ ColumnWidthOutlined,
} from '@ant-design/icons-vue'
export default defineComponent({
@@ -120,6 +124,8 @@ export default defineComponent({
AlignRightOutlined,
OrderedListOutlined,
UnorderedListOutlined,
+ ColumnHeightOutlined,
+ ColumnWidthOutlined,
},
})
diff --git a/src/views/Editor/Toolbar/SlideStylePanel.vue b/src/views/Editor/Toolbar/SlideStylePanel.vue
index e97903e8..2f3f5fa7 100644
--- a/src/views/Editor/Toolbar/SlideStylePanel.vue
+++ b/src/views/Editor/Toolbar/SlideStylePanel.vue
@@ -1,7 +1,7 @@