From 8bf5744e03becba2e5de370b6d26bd239e4e7459 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Sat, 26 Dec 2020 14:28:09 +0800 Subject: [PATCH] update --- src/assets/styles/global.scss | 3 +- .../Contextmenu/ContextmenuContent.vue | 16 ++-- src/components/Contextmenu/index.vue | 2 +- src/store/index.ts | 5 +- src/types/edit.ts | 9 +- src/types/toolbar.ts | 11 +++ src/views/Editor/Canvas/Operate/index.vue | 2 +- src/views/Editor/Canvas/index.vue | 11 +-- src/views/Editor/EditorHeader/index.vue | 4 +- src/views/Editor/Thumbnails/index.vue | 20 ++--- .../Editor/Toolbar/ElementAnimationPanel.vue | 0 .../Editor/Toolbar/ElementPositionPanel.vue | 0 .../Toolbar/ElementStylePanel/index.vue | 0 .../Editor/Toolbar/MultiCommandPanel.vue | 0 .../Editor/Toolbar/MultiPositionPanel.vue | 0 .../Editor/Toolbar/SlideAnimationPanel.vue | 0 src/views/Editor/Toolbar/SlideStylePanel.vue | 0 src/views/Editor/Toolbar/index.vue | 90 ++++++++++++++++++- 18 files changed, 124 insertions(+), 49 deletions(-) create mode 100644 src/types/toolbar.ts create mode 100644 src/views/Editor/Toolbar/ElementAnimationPanel.vue create mode 100644 src/views/Editor/Toolbar/ElementPositionPanel.vue create mode 100644 src/views/Editor/Toolbar/ElementStylePanel/index.vue create mode 100644 src/views/Editor/Toolbar/MultiCommandPanel.vue create mode 100644 src/views/Editor/Toolbar/MultiPositionPanel.vue create mode 100644 src/views/Editor/Toolbar/SlideAnimationPanel.vue create mode 100644 src/views/Editor/Toolbar/SlideStylePanel.vue diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index a6e70c44..cb54c1a4 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -58,6 +58,5 @@ a { background-color: #fff; } ::-webkit-scrollbar-thumb { - background-color: #e1e1e1; - border-radius: 5px; + background-color: #c1c1c1; } \ No newline at end of file diff --git a/src/components/Contextmenu/ContextmenuContent.vue b/src/components/Contextmenu/ContextmenuContent.vue index cf179310..61fe4d70 100644 --- a/src/components/Contextmenu/ContextmenuContent.vue +++ b/src/components/Contextmenu/ContextmenuContent.vue @@ -52,7 +52,7 @@ export default defineComponent({ \ No newline at end of file diff --git a/src/views/Editor/Thumbnails/index.vue b/src/views/Editor/Thumbnails/index.vue index da3efd9f..0ae3e882 100644 --- a/src/views/Editor/Thumbnails/index.vue +++ b/src/views/Editor/Thumbnails/index.vue @@ -4,9 +4,7 @@ @mousedown="() => setThumbnailsFocus(true)" v-click-outside="() => setThumbnailsFocus(false)" > -
- + 添加幻灯片 -
+
+ 添加幻灯片
- +
+
{{tab.label}}
+
+
+ +
@@ -16,7 +72,35 @@ export default defineComponent({ .toolbar { border-left: solid 1px #eee; background-color: #fff; + display: flex; + flex-direction: column; +} +.tabs { + height: 40px; + font-size: 12px; + flex-shrink: 0; + display: flex; +} +.tab { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + background-color: #f9f9f9; + border-bottom: 1px solid #eee; + cursor: pointer; + + &.active { + background-color: #fff; + border-bottom-color: #fff; + } + + & + .tab { + border-left: 1px solid #eee; + } +} +.content { + padding: 5px; overflow: auto; - padding: 5px 0; } \ No newline at end of file