diff --git a/public/index.html b/public/index.html index 59a3bfe3..d16f4c34 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,5 @@
- - diff --git a/src/assets/styles/antd.scss b/src/assets/styles/antd.scss new file mode 100644 index 00000000..2fbd90ff --- /dev/null +++ b/src/assets/styles/antd.scss @@ -0,0 +1,16 @@ +.ant-popover { + padding-top: 5px !important; +} +.ant-popover-arrow { + display: none; +} +.ant-popover-inner { + box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15); + border: 1px solid #eee; +} +.ant-popover-inner-content { + padding: 12px !important; +} +.ant-btn { + font-size: 13px !important; +} \ No newline at end of file diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index 7989097f..c1ef2365 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -60,17 +60,3 @@ a { ::-webkit-scrollbar-thumb { background-color: #c1c1c1; } - -.ant-popover { - padding-top: 5px !important; -} -.ant-popover-arrow { - display: none; -} -.ant-popover-inner { - box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15); - border: 1px solid #eee; -} -.ant-popover-inner-content { - padding: 12px !important; -} diff --git a/src/main.ts b/src/main.ts index 82ea52aa..476e44b0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import store from './store' import 'prosemirror-view/style/prosemirror.css' import '@/assets/styles/prosemirror.scss' import '@/assets/styles/global.scss' +import '@/assets/styles/antd.scss' import 'animate.css' import contextmenu from './plugins/contextmenu' diff --git a/src/views/Editor/CanvasTool/index.vue b/src/views/Editor/CanvasTool/index.vue index 8cb38a60..84069356 100644 --- a/src/views/Editor/CanvasTool/index.vue +++ b/src/views/Editor/CanvasTool/index.vue @@ -10,13 +10,13 @@ - + - + @@ -35,7 +35,7 @@ \ 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 8c14eaaa..9f9675a3 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue @@ -1,13 +1,134 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/Editor/Toolbar/ElementStylePanel/index.vue b/src/views/Editor/Toolbar/ElementStylePanel/index.vue index 1788ca86..83e698eb 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/index.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/index.vue @@ -22,6 +22,8 @@ export default defineComponent({ const handleElement: Ref = computed(() => store.getters.handleElement) const currentPanelComponent = computed(() => { + if(!handleElement.value) return null + const panelMap = { [ElementTypes.TEXT]: TextStylePanel, [ElementTypes.IMAGE]: ImageStylePanel, diff --git a/src/views/Editor/Toolbar/MultiPositionPanel.vue b/src/views/Editor/Toolbar/MultiPositionPanel.vue index a0c089d8..02dc0c15 100644 --- a/src/views/Editor/Toolbar/MultiPositionPanel.vue +++ b/src/views/Editor/Toolbar/MultiPositionPanel.vue @@ -1,13 +1,44 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/Editor/Toolbar/index.vue b/src/views/Editor/Toolbar/index.vue index e279ef5b..77527e18 100644 --- a/src/views/Editor/Toolbar/index.vue +++ b/src/views/Editor/Toolbar/index.vue @@ -121,6 +121,7 @@ export default defineComponent({ } .content { padding: 12px; + font-size: 13px; overflow: auto; } \ No newline at end of file