From 8761d313e395950d4e3c9f72244246e3e3a7496e Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Tue, 7 Jun 2022 23:06:27 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4=20interface=20?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=9A=84=E5=88=86=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +- src/components.d.ts | 266 +++++++-------- src/components/CheckboxButtonGroup.vue | 6 +- src/components/Contextmenu/types.ts | 18 +- src/components/LaTeXEditor/index.vue | 4 +- src/configs/chartTypes.ts | 2 +- src/configs/lines.ts | 16 +- src/configs/shapes.ts | 14 +- src/global.d.ts | 20 +- src/hooks/useCreateElement.ts | 16 +- src/hooks/useExport.ts | 6 +- src/hooks/usePasteTextClipboardData.ts | 4 +- src/hooks/useUniformDisplayElement.ts | 24 +- src/store/keyboard.ts | 6 +- src/store/main.ts | 42 +-- src/store/screen.ts | 2 +- src/store/slides.ts | 20 +- src/store/snapshot.ts | 4 +- src/types/edit.ts | 44 +-- src/types/slides.ts | 306 +++++++++--------- src/utils/database.ts | 4 +- src/utils/element.ts | 14 +- src/utils/emitter.ts | 14 +- src/utils/htmlParser/lexer.ts | 6 +- src/utils/htmlParser/parser.ts | 10 +- src/utils/htmlParser/types.ts | 56 ++-- src/utils/image.ts | 4 +- src/utils/print.ts | 6 +- .../prosemirror/commands/setTextAlign.ts | 6 +- src/utils/prosemirror/utils.ts | 10 +- src/views/Editor/Canvas/LinkDialog.vue | 4 +- src/views/Editor/Canvas/Ruler.vue | 8 +- .../Editor/Canvas/hooks/useDragLineElement.ts | 4 +- .../Editor/Canvas/hooks/useScaleElement.ts | 8 +- src/views/Editor/CanvasTool/MediaInput.vue | 4 +- src/views/Editor/ExportDialog/index.vue | 4 +- .../Editor/Toolbar/ElementAnimationPanel.vue | 4 +- .../Editor/Toolbar/SlideAnimationPanel.vue | 4 +- .../Editor/Toolbar/common/ElementFilter.vue | 14 +- src/views/Editor/Toolbar/index.vue | 4 +- .../Mobile/MobileEditor/ElementToolbar.vue | 4 +- src/views/Screen/WritingBoardTool.vue | 11 +- 42 files changed, 511 insertions(+), 515 deletions(-) diff --git a/README.md b/README.md index f298ed11..0a38a6e2 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,8 @@ A. 首先需要明确的一点,就是移动端无论怎么做,体验上都 └── views // 业务组件目录,分为 `编辑器` 和 `播放器` 两个部分。 ├── components // 公用的业务组件 ├── Editor // 编辑器模块 - └── Screen // 播放器模块 + ├── Screen // 播放器模块 + └── Screen // 移动端模块 ``` diff --git a/src/components.d.ts b/src/components.d.ts index 10d9bd75..f865f0fe 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -115,143 +115,143 @@ declare module 'vue' { export interface GlobalComponents { // 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']; + 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'] // 自定义组件 - FileInput: typeof FileInput; - CheckboxButton: typeof CheckboxButton; - CheckboxButtonGroup: typeof CheckboxButtonGroup; - ColorPicker: typeof ColorPicker; - FullscreenSpin: typeof FullscreenSpin; + FileInput: typeof FileInput + CheckboxButton: typeof CheckboxButton + CheckboxButtonGroup: typeof CheckboxButtonGroup + ColorPicker: typeof ColorPicker + FullscreenSpin: typeof FullscreenSpin // IconPark 图标组件 - IconPlayOne: typeof PlayOne; - IconFullScreenPlay: typeof FullScreenPlay; - IconLock: typeof Lock; - IconUnlock: typeof Unlock; - IconPpt: typeof Ppt; - IconFormat: typeof Format; - IconPicture: typeof Picture; - IconFullScreen: typeof FullScreen; - IconList: typeof List; - IconOrderedList: typeof OrderedList; - IconHelpcenter: typeof Helpcenter; - IconFlipVertically: typeof FlipVertically; - IconFlipHorizontally: typeof FlipHorizontally; - IconFontSize: typeof FontSize; - IconCode: typeof Code; - IconTextBold: typeof TextBold; - IconTextItalic: typeof TextItalic; - IconTextUnderline: typeof TextUnderline; - IconStrikethrough: typeof Strikethrough; - IconEdit: typeof Edit; - IconQuote: typeof Quote; - IconBackgroundColor: typeof BackgroundColor; - IconGroup: typeof Group; - IconUngroup: typeof Ungroup; - IconBack: typeof Back; - IconNext: typeof Next; - IconFullwidth: typeof Fullwidth; - IconAlignTop: typeof AlignTop; - IconAlignLeft: typeof AlignLeft; - IconAlignRight: typeof AlignRight; - IconAlignBottom: typeof AlignBottom; - IconAlignVertically: typeof AlignVertically; - IconAlignHorizontally: typeof AlignHorizontally; - IconBringToFront: typeof BringToFront; - IconSendToBack: typeof SendToBack; - IconAlignTextLeft: typeof AlignTextLeft; - IconAlignTextRight: typeof AlignTextRight; - IconAlignTextCenter: typeof AlignTextCenter; - IconRowHeight: typeof RowHeight; - IconWrite: typeof Write; - IconInsertTable: typeof InsertTable; - IconAddText: typeof AddText; - IconFill: typeof Fill; - IconTailoring: typeof Tailoring; - IconEffects: typeof Effects; - IconColorFilter: typeof ColorFilter; - IconDown: typeof Down; - IconPlus: typeof Plus; - IconMinus: typeof Minus; - IconConnection: typeof Connection; - IconBringToFrontOne: typeof BringToFrontOne; - IconSentToBack: typeof SentToBack; - IconGithub: typeof Github; - IconChartProportion: typeof ChartProportion; - IconChartHistogram: typeof ChartHistogram; - IconChartHistogramOne: typeof ChartHistogramOne; - IconChartLineArea: typeof ChartLineArea; - IconChartRing: typeof ChartRing; - IconChartScatter: typeof ChartScatter; - IconChartLine: typeof ChartLine; - IconChartPie: typeof ChartPie; - IconText: typeof Text; - IconRotate: typeof Rotate; - IconLeftTwo: typeof LeftTwo; - IconRightTwo: typeof RightTwo; - IconPlatte: typeof Platte; - IconUpOne: typeof UpOne; - IconDownOne: typeof DownOne; - IconClose: typeof Close; - IconCloseSmall: typeof CloseSmall; - IconUndo: typeof Undo; - IconTransform: typeof Transform; - IconClick: typeof Click; - IconTheme: typeof Theme; - IconArrowCircleLeft: typeof ArrowCircleLeft; - IconGraphicDesign: typeof GraphicDesign; - IconLogout: typeof Logout; - IconErase: typeof Erase; - IconClear: typeof Clear; - IconFolderClose: typeof FolderClose; - IconAlignTextTopOne: typeof AlignTextTopOne; - IconAlignTextBottomOne: typeof AlignTextBottomOne; - IconAlignTextMiddleOne: typeof AlignTextMiddleOne; - IconPause: typeof Pause; - IconVolumeMute: typeof VolumeMute; - IconVolumeNotice: typeof VolumeNotice; - IconVolumeSmall: typeof VolumeSmall; - IconVideoTwo: typeof VideoTwo; - IconFormula: typeof Formula; - IconLinkOne: typeof LinkOne; - IconFullScreenOne: typeof FullScreenOne; - IconOffScreenOne: typeof OffScreenOne; - IconPower: typeof Power; - IconListView: typeof ListView; - IconMagic: typeof Magic; - IconHighLight: typeof HighLight; - IconShare: typeof Share; - IconIndentLeft: typeof IndentLeft; - IconIndentRight: typeof IndentRight; - IconVerticalSpacingBetweenItems: typeof VerticalSpacingBetweenItems; - IconCopy: typeof Copy; - IconDelete: typeof Delete; - IconSquare: typeof Square; - IconRound: typeof Round; + IconPlayOne: typeof PlayOne + IconFullScreenPlay: typeof FullScreenPlay + IconLock: typeof Lock + IconUnlock: typeof Unlock + IconPpt: typeof Ppt + IconFormat: typeof Format + IconPicture: typeof Picture + IconFullScreen: typeof FullScreen + IconList: typeof List + IconOrderedList: typeof OrderedList + IconHelpcenter: typeof Helpcenter + IconFlipVertically: typeof FlipVertically + IconFlipHorizontally: typeof FlipHorizontally + IconFontSize: typeof FontSize + IconCode: typeof Code + IconTextBold: typeof TextBold + IconTextItalic: typeof TextItalic + IconTextUnderline: typeof TextUnderline + IconStrikethrough: typeof Strikethrough + IconEdit: typeof Edit + IconQuote: typeof Quote + IconBackgroundColor: typeof BackgroundColor + IconGroup: typeof Group + IconUngroup: typeof Ungroup + IconBack: typeof Back + IconNext: typeof Next + IconFullwidth: typeof Fullwidth + IconAlignTop: typeof AlignTop + IconAlignLeft: typeof AlignLeft + IconAlignRight: typeof AlignRight + IconAlignBottom: typeof AlignBottom + IconAlignVertically: typeof AlignVertically + IconAlignHorizontally: typeof AlignHorizontally + IconBringToFront: typeof BringToFront + IconSendToBack: typeof SendToBack + IconAlignTextLeft: typeof AlignTextLeft + IconAlignTextRight: typeof AlignTextRight + IconAlignTextCenter: typeof AlignTextCenter + IconRowHeight: typeof RowHeight + IconWrite: typeof Write + IconInsertTable: typeof InsertTable + IconAddText: typeof AddText + IconFill: typeof Fill + IconTailoring: typeof Tailoring + IconEffects: typeof Effects + IconColorFilter: typeof ColorFilter + IconDown: typeof Down + IconPlus: typeof Plus + IconMinus: typeof Minus + IconConnection: typeof Connection + IconBringToFrontOne: typeof BringToFrontOne + IconSentToBack: typeof SentToBack + IconGithub: typeof Github + IconChartProportion: typeof ChartProportion + IconChartHistogram: typeof ChartHistogram + IconChartHistogramOne: typeof ChartHistogramOne + IconChartLineArea: typeof ChartLineArea + IconChartRing: typeof ChartRing + IconChartScatter: typeof ChartScatter + IconChartLine: typeof ChartLine + IconChartPie: typeof ChartPie + IconText: typeof Text + IconRotate: typeof Rotate + IconLeftTwo: typeof LeftTwo + IconRightTwo: typeof RightTwo + IconPlatte: typeof Platte + IconUpOne: typeof UpOne + IconDownOne: typeof DownOne + IconClose: typeof Close + IconCloseSmall: typeof CloseSmall + IconUndo: typeof Undo + IconTransform: typeof Transform + IconClick: typeof Click + IconTheme: typeof Theme + IconArrowCircleLeft: typeof ArrowCircleLeft + IconGraphicDesign: typeof GraphicDesign + IconLogout: typeof Logout + IconErase: typeof Erase + IconClear: typeof Clear + IconFolderClose: typeof FolderClose + IconAlignTextTopOne: typeof AlignTextTopOne + IconAlignTextBottomOne: typeof AlignTextBottomOne + IconAlignTextMiddleOne: typeof AlignTextMiddleOne + IconPause: typeof Pause + IconVolumeMute: typeof VolumeMute + IconVolumeNotice: typeof VolumeNotice + IconVolumeSmall: typeof VolumeSmall + IconVideoTwo: typeof VideoTwo + IconFormula: typeof Formula + IconLinkOne: typeof LinkOne + IconFullScreenOne: typeof FullScreenOne + IconOffScreenOne: typeof OffScreenOne + IconPower: typeof Power + IconListView: typeof ListView + IconMagic: typeof Magic + IconHighLight: typeof HighLight + IconShare: typeof Share + IconIndentLeft: typeof IndentLeft + IconIndentRight: typeof IndentRight + IconVerticalSpacingBetweenItems: typeof VerticalSpacingBetweenItems + IconCopy: typeof Copy + IconDelete: typeof Delete + IconSquare: typeof Square + IconRound: typeof Round } } diff --git a/src/components/CheckboxButtonGroup.vue b/src/components/CheckboxButtonGroup.vue index cfa06fd2..a57b6642 100644 --- a/src/components/CheckboxButtonGroup.vue +++ b/src/components/CheckboxButtonGroup.vue @@ -5,9 +5,11 @@