From 33a4d93100eb63b39dfc27714ff76d90086dd218 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Sun, 17 Jan 2021 22:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=84=E4=B8=AA=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E7=8B=AC=E7=AB=8B=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/antd.scss | 5 + src/main.ts | 2 + .../{ => ChartStylePanel}/ChartDataEditor.vue | 0 .../index.vue} | 291 +++++++++++------- .../Toolbar/ElementStylePanel/index.vue | 2 +- 5 files changed, 189 insertions(+), 111 deletions(-) rename src/views/Editor/Toolbar/ElementStylePanel/{ => ChartStylePanel}/ChartDataEditor.vue (100%) rename src/views/Editor/Toolbar/ElementStylePanel/{ChartStylePanel.vue => ChartStylePanel/index.vue} (50%) diff --git a/src/assets/styles/antd.scss b/src/assets/styles/antd.scss index 52badb8..13fd225 100644 --- a/src/assets/styles/antd.scss +++ b/src/assets/styles/antd.scss @@ -70,4 +70,9 @@ // tooltip .ant-tooltip-inner { font-size: 12px; +} + +// checkbox +.ant-checkbox-wrapper { + font-size: 13px; } \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 391314e..d87bd9f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,6 +33,7 @@ import { Modal, Dropdown, Menu, + Checkbox, } from 'ant-design-vue' const app = createApp(App) @@ -56,6 +57,7 @@ app.component('Modal', Modal) app.component('Dropdown', Dropdown) app.component('Menu', Menu) app.component('MenuItem', Menu.Item) +app.component('Checkbox', Checkbox) app.directive('contextmenu', Contextmenu) app.directive('click-outside', ClickOutside) diff --git a/src/views/Editor/Toolbar/ElementStylePanel/ChartDataEditor.vue b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue similarity index 100% rename from src/views/Editor/Toolbar/ElementStylePanel/ChartDataEditor.vue rename to src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue diff --git a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.vue similarity index 50% rename from src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel.vue rename to src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.vue index e83b22d..9e27316 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.vue @@ -1,111 +1,182 @@ - - - - - \ 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 724145b..1eaf00a 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/index.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/index.vue @@ -17,7 +17,7 @@ import TextStylePanel from './TextStylePanel.vue' import ImageStylePanel from './ImageStylePanel.vue' import ShapeStylePanel from './ShapeStylePanel.vue' import LineStylePanel from './LineStylePanel.vue' -import ChartStylePanel from './ChartStylePanel.vue' +import ChartStylePanel from './ChartStylePanel/index.vue' export default defineComponent({ name: 'element-style-panel',