From d8d94a0c2059fb0af0b0e3b0243a75f6085370b4 Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 7 Jun 2023 17:41:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20minder-editor=E8=84=91=E5=9B=BE?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8A=9F=E8=83=BD=E8=A1=A5=E9=BD=90&?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components.d.ts | 52 ++++- .../components/minder-editor/main/header.vue | 19 +- .../minder-editor/main/mainEditor.vue | 2 +- .../minder-editor/menu/edit/editMenu.vue | 12 ++ .../minder-editor/menu/edit/sequenceBox.vue | 4 +- .../minder-editor/menu/view/mold.vue | 2 +- .../minder-editor/menu/view/viewMenu.vue | 12 +- .../components/minder-editor/minderEditor.vue | 7 +- .../src/components/minder-editor/props.ts | 23 +++ .../minder-editor/style/header.less | 49 ++--- .../components/minder-editor/style/mixin.less | 16 -- frontend/src/components/theme-box/index.vue | 8 +- frontend/src/views/minder/index.vue | 193 +++++++----------- 13 files changed, 214 insertions(+), 185 deletions(-) delete mode 100644 frontend/src/components/minder-editor/style/mixin.less diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 524ea40698..0c52a8c177 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -5,11 +5,57 @@ // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' -export {} +export {}; declare module '@vue/runtime-core' { export interface GlobalComponents { - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] + AAffix: typeof import('@arco-design/web-vue')['Affix']; + AAlert: typeof import('@arco-design/web-vue')['Alert']; + AAvatar: typeof import('@arco-design/web-vue')['Avatar']; + ABadge: typeof import('@arco-design/web-vue')['Badge']; + ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb']; + ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem']; + AButton: typeof import('@arco-design/web-vue')['Button']; + ACard: typeof import('@arco-design/web-vue')['Card']; + ACardMeta: typeof import('@arco-design/web-vue')['CardMeta']; + ACol: typeof import('@arco-design/web-vue')['Col']; + AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider']; + ADivider: typeof import('@arco-design/web-vue')['Divider']; + ADoption: typeof import('@arco-design/web-vue')['Doption']; + ADrawer: typeof import('@arco-design/web-vue')['Drawer']; + ADropdown: typeof import('@arco-design/web-vue')['Dropdown']; + AInputNumber: typeof import('@arco-design/web-vue')['InputNumber']; + ALayout: typeof import('@arco-design/web-vue')['Layout']; + ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent']; + ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter']; + ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider']; + ALink: typeof import('@arco-design/web-vue')['Link']; + AList: typeof import('@arco-design/web-vue')['List']; + AListItem: typeof import('@arco-design/web-vue')['ListItem']; + AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta']; + AMenu: typeof import('@arco-design/web-vue')['Menu']; + AMenuItem: typeof import('@arco-design/web-vue')['MenuItem']; + AModal: typeof import('@arco-design/web-vue')['Modal']; + AOption: typeof import('@arco-design/web-vue')['Option']; + APagination: typeof import('@arco-design/web-vue')['Pagination']; + APopover: typeof import('@arco-design/web-vue')['Popover']; + AResult: typeof import('@arco-design/web-vue')['Result']; + ARow: typeof import('@arco-design/web-vue')['Row']; + ASelect: typeof import('@arco-design/web-vue')['Select']; + ASkeleton: typeof import('@arco-design/web-vue')['Skeleton']; + ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine']; + ASkeletonShape: typeof import('@arco-design/web-vue')['SkeletonShape']; + ASpace: typeof import('@arco-design/web-vue')['Space']; + ASpin: typeof import('@arco-design/web-vue')['Spin']; + ASubMenu: typeof import('@arco-design/web-vue')['SubMenu']; + ASwitch: typeof import('@arco-design/web-vue')['Switch']; + ATabPane: typeof import('@arco-design/web-vue')['TabPane']; + ATabs: typeof import('@arco-design/web-vue')['Tabs']; + ATag: typeof import('@arco-design/web-vue')['Tag']; + ATooltip: typeof import('@arco-design/web-vue')['Tooltip']; + ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph']; + ATypographyText: typeof import('@arco-design/web-vue')['TypographyText']; + RouterLink: typeof import('vue-router')['RouterLink']; + RouterView: typeof import('vue-router')['RouterView']; } } diff --git a/frontend/src/components/minder-editor/main/header.vue b/frontend/src/components/minder-editor/main/header.vue index c602910a0b..c0221c9280 100644 --- a/frontend/src/components/minder-editor/main/header.vue +++ b/frontend/src/components/minder-editor/main/header.vue @@ -23,7 +23,16 @@
- +
@@ -35,7 +44,7 @@ import editMenu from '../menu/edit/editMenu.vue'; import viewMenu from '../menu/view/viewMenu.vue'; import { useI18n } from '@/hooks/useI18n'; - import { editMenuProps, moleProps, priorityProps, tagProps, delProps } from '../props'; + import { editMenuProps, moleProps, priorityProps, tagProps, delProps, viewMenuProps } from '../props'; const { t } = useI18n(); @@ -45,6 +54,7 @@ ...priorityProps, ...tagProps, ...delProps, + ...viewMenuProps, minder: null, }); @@ -59,10 +69,11 @@ diff --git a/frontend/src/components/minder-editor/main/mainEditor.vue b/frontend/src/components/minder-editor/main/mainEditor.vue index f9cc11f055..078901df42 100644 --- a/frontend/src/components/minder-editor/main/mainEditor.vue +++ b/frontend/src/components/minder-editor/main/mainEditor.vue @@ -131,7 +131,7 @@ diff --git a/frontend/src/components/minder-editor/menu/edit/sequenceBox.vue b/frontend/src/components/minder-editor/menu/edit/sequenceBox.vue index d78c30161a..9e25c9147e 100644 --- a/frontend/src/components/minder-editor/menu/edit/sequenceBox.vue +++ b/frontend/src/components/minder-editor/menu/edit/sequenceBox.vue @@ -1,6 +1,6 @@