From 659d5f7221fffb5d3e6dd10a5fc53a8b7a38e806 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sun, 6 Nov 2022 11:11:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=B9=E4=B8=BA=E7=BB=84=E4=BB=B6=E5=86=85?= =?UTF-8?q?=E5=BC=95=E7=94=A8=EF=BC=88Volar=E7=BB=8F=E5=B8=B8=E8=8E=AB?= =?UTF-8?q?=E5=90=8D=E5=85=B6=E5=A6=99=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components.d.ts | 45 +----------------- src/components/FullscreenSpin.vue | 4 +- src/components/LaTeXEditor/index.vue | 7 ++- src/main.ts | 46 ------------------- src/plugins/component.ts | 25 ---------- src/views/Editor/Canvas/LinkDialog.vue | 6 +++ .../Editor/Canvas/Operate/LinkHandler.vue | 2 + src/views/Editor/Canvas/index.vue | 1 + src/views/Editor/CanvasTool/MediaInput.vue | 6 ++- .../Editor/CanvasTool/TableGenerator.vue | 6 ++- src/views/Editor/CanvasTool/index.vue | 6 +++ src/views/Editor/EditorHeader/index.vue | 8 ++++ src/views/Editor/ExportDialog/ExportImage.vue | 9 ++++ src/views/Editor/ExportDialog/ExportJSON.vue | 2 + src/views/Editor/ExportDialog/ExportPDF.vue | 8 ++++ src/views/Editor/ExportDialog/ExportPPTX.vue | 9 ++++ .../ExportDialog/ExportSpecificFile.vue | 7 +++ src/views/Editor/SelectPanel.vue | 3 ++ src/views/Editor/Thumbnails/index.vue | 1 + .../Editor/Toolbar/ElementAnimationPanel.vue | 9 ++++ .../Editor/Toolbar/ElementPositionPanel.vue | 8 ++++ .../ElementStylePanel/AudioStylePanel.vue | 2 + .../ChartStylePanel/ChartDataEditor.vue | 2 + .../ChartStylePanel/index.vue | 12 +++++ .../ElementStylePanel/ImageStylePanel.vue | 7 +++ .../ElementStylePanel/LatexStylePanel.vue | 8 ++++ .../ElementStylePanel/LineStylePanel.vue | 8 ++++ .../ElementStylePanel/MultiStylePanel.vue | 15 ++++++ .../ElementStylePanel/ShapeStylePanel.vue | 17 +++++++ .../ElementStylePanel/TableStylePanel.vue | 18 ++++++++ .../ElementStylePanel/TextStylePanel.vue | 19 +++++++- .../ElementStylePanel/VideoStylePanel.vue | 3 ++ .../Editor/Toolbar/MultiPositionPanel.vue | 7 +++ .../Editor/Toolbar/SlideAnimationPanel.vue | 2 + src/views/Editor/Toolbar/SlideDesignPanel.vue | 12 ++++- .../Editor/Toolbar/common/ColorButton.vue | 2 + .../Toolbar/common/ElementColorMask.vue | 6 +++ .../Editor/Toolbar/common/ElementFilter.vue | 2 + .../Editor/Toolbar/common/ElementFlip.vue | 3 ++ .../Editor/Toolbar/common/ElementOpacity.vue | 2 + .../Editor/Toolbar/common/ElementOutline.vue | 8 ++++ .../Editor/Toolbar/common/ElementShadow.vue | 6 +++ .../Editor/Toolbar/common/TextColorButton.vue | 2 + src/views/Editor/index.vue | 1 + .../Mobile/MobileEditor/ElementToolbar.vue | 10 ++++ .../Mobile/MobileEditor/SlideToolbar.vue | 3 ++ src/views/Mobile/MobilePreview.vue | 3 +- src/views/Screen/BaseView.vue | 1 + src/views/Screen/CountdownTimer.vue | 2 + src/views/Screen/PresenterView.vue | 1 + src/views/Screen/WritingBoardTool.vue | 7 +++ 51 files changed, 286 insertions(+), 123 deletions(-) delete mode 100644 src/plugins/component.ts diff --git a/src/components.d.ts b/src/components.d.ts index 3a587216..549a0f69 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -1,50 +1,7 @@ import { icons } from '@/plugins/icon' -import { components } from '@/plugins/component' - -import FileInput from '@/components/FileInput.vue' -import CheckboxButton from '@/components/CheckboxButton.vue' -import CheckboxButtonGroup from '@/components/CheckboxButtonGroup.vue' -import ColorPicker from '@/components/ColorPicker/index.vue' -import FullscreenSpin from '@/components/FullscreenSpin.vue' -import MoveablePanel from '@/components/MoveablePanel.vue' - -type Icon = typeof icons declare module 'vue' { - export interface GlobalComponents extends Icon { - FileInput: typeof FileInput - CheckboxButton: typeof CheckboxButton - CheckboxButtonGroup: typeof CheckboxButtonGroup - ColorPicker: typeof ColorPicker - FullscreenSpin: typeof FullscreenSpin - MoveablePanel: typeof MoveablePanel - - // antd 组件 - InputNumber: typeof import('ant-design-vue')['InputNumber'] - Divider: typeof import('ant-design-vue')['Divider'] - Button: typeof import('ant-design-vue')['Button'] - ButtonGroup: typeof import('ant-design-vue')['Button']['Group'] - Tooltip: typeof import('ant-design-vue')['Tooltip'] - Popover: typeof import('ant-design-vue')['Popover'] - Slider: typeof import('ant-design-vue')['Slider'] - Select: typeof import('ant-design-vue')['Select'] - SelectOption: typeof import('ant-design-vue')['Select']['Option'] - SelectOptGroup: typeof import('ant-design-vue')['Select']['OptGroup'] - Switch: typeof import('ant-design-vue')['Switch'] - Radio: typeof import('ant-design-vue')['Radio'] - RadioGroup: typeof import('ant-design-vue')['Radio']['Group'] - RadioButton: typeof import('ant-design-vue')['Radio']['Button'] - Input: typeof import('ant-design-vue')['Input'] - InputGroup: typeof import('ant-design-vue')['Input']['Group'] - TextArea: typeof import('ant-design-vue')['Input']['TextArea'] - Modal: typeof import('ant-design-vue')['Modal'] - Dropdown: typeof import('ant-design-vue')['Dropdown'] - Menu: typeof import('ant-design-vue')['Menu'] - MenuItem: typeof import('ant-design-vue')['Menu']['Item'] - Checkbox: typeof import('ant-design-vue')['Checkbox'] - Drawer: typeof import('ant-design-vue')['Drawer'] - Spin: typeof import('ant-design-vue')['Spin'] - } + export type GlobalComponents = typeof icons } export {} \ No newline at end of file diff --git a/src/components/FullscreenSpin.vue b/src/components/FullscreenSpin.vue index a9fcdeda..4293e741 100644 --- a/src/components/FullscreenSpin.vue +++ b/src/components/FullscreenSpin.vue @@ -3,7 +3,9 @@