From b8159a0d73d9aef870779ac3dc6652705719b3b2 Mon Sep 17 00:00:00 2001 From: xiaoming <1923740402@qq.com> Date: Tue, 30 Apr 2024 22:27:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84`layout`=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=98=93=E8=AF=BB=20(#1110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yaml | 5 + locales/zh-CN.yaml | 5 + .../ReAnimateSelector/src/index.vue | 4 +- src/components/ReCropperPreview/src/index.vue | 4 +- src/components/ReFlowChart/src/DataDialog.vue | 4 +- src/components/ReFlowChart/src/NodePanel.vue | 2 +- src/components/ReSeamlessScroll/src/index.vue | 6 +- .../{appMain.vue => lay-content/index.vue} | 20 +-- .../{footer => lay-footer}/index.vue | 0 .../{keepAliveFrame => lay-frame}/index.vue | 8 +- .../{navbar.vue => lay-navbar/index.vue} | 31 ++-- .../components/NoticeItem.vue} | 24 +-- .../lay-notice/components/NoticeList.vue | 24 +++ src/layout/components/lay-notice/data.ts | 99 ++++++++++++ .../{notice => lay-notice}/index.vue | 34 ++-- .../components/{panel => lay-panel}/index.vue | 4 +- .../components/SearchFooter.vue | 15 +- .../components/SearchHistory.vue | 0 .../components/SearchHistoryItem.vue | 8 +- .../components/SearchModal.vue | 4 +- .../components/SearchResult.vue | 4 +- .../{search => lay-search}/index.vue | 2 +- .../{search => lay-search}/types.ts | 0 .../{setting => lay-setting}/index.vue | 18 +-- .../NavHorizontal.vue} | 23 +-- .../mixNav.vue => lay-sidebar/NavMix.vue} | 21 +-- .../NavVertical.vue} | 16 +- .../components/SidebarBreadCrumb.vue} | 0 .../components/SidebarCenterCollapse.vue} | 4 +- .../components/SidebarExtraIcon.vue} | 4 +- .../components/SidebarFullScreen.vue} | 0 .../components/SidebarItem.vue} | 50 +++--- .../components/SidebarLeftCollapse.vue} | 4 +- .../components/SidebarLinkItem.vue} | 4 - .../components/SidebarLogo.vue} | 6 +- .../components/SidebarTopCollapse.vue} | 6 +- .../components/{tag => lay-tag}/index.scss | 0 .../components/{tag => lay-tag}/index.vue | 0 src/layout/components/notice/data.ts | 146 ------------------ src/layout/components/notice/noticeList.vue | 26 ---- .../components/search/components/index.ts | 3 - src/layout/{frameView.vue => frame.vue} | 2 +- .../keepAliveFrame => hooks}/useMultiFrame.ts | 0 src/layout/index.vue | 37 ++--- src/router/modules/board.ts | 2 +- src/router/modules/formdesign.ts | 2 +- src/router/modules/mind.ts | 2 +- src/router/modules/ppt.ts | 2 +- src/router/utils.ts | 2 +- src/views/account-settings/index.vue | 4 +- src/views/monitor/logs/system/detail.vue | 7 +- src/views/system/user/tree.vue | 6 +- src/views/table/base/fixColumn.vue | 6 +- 53 files changed, 332 insertions(+), 378 deletions(-) rename src/layout/components/{appMain.vue => lay-content/index.vue} (91%) rename src/layout/components/{footer => lay-footer}/index.vue (100%) rename src/layout/components/{keepAliveFrame => lay-frame}/index.vue (88%) rename src/layout/components/{navbar.vue => lay-navbar/index.vue} (85%) rename src/layout/components/{notice/noticeItem.vue => lay-notice/components/NoticeItem.vue} (88%) create mode 100644 src/layout/components/lay-notice/components/NoticeList.vue create mode 100644 src/layout/components/lay-notice/data.ts rename src/layout/components/{notice => lay-notice}/index.vue (69%) rename src/layout/components/{panel => lay-panel}/index.vue (97%) rename src/layout/components/{search => lay-search}/components/SearchFooter.vue (78%) rename src/layout/components/{search => lay-search}/components/SearchHistory.vue (100%) rename src/layout/components/{search => lay-search}/components/SearchHistoryItem.vue (88%) rename src/layout/components/{search => lay-search}/components/SearchModal.vue (99%) rename src/layout/components/{search => lay-search}/components/SearchResult.vue (96%) rename src/layout/components/{search => lay-search}/index.vue (88%) rename src/layout/components/{search => lay-search}/types.ts (100%) rename src/layout/components/{setting => lay-setting}/index.vue (98%) rename src/layout/components/{sidebar/horizontal.vue => lay-sidebar/NavHorizontal.vue} (89%) rename src/layout/components/{sidebar/mixNav.vue => lay-sidebar/NavMix.vue} (90%) rename src/layout/components/{sidebar/vertical.vue => lay-sidebar/NavVertical.vue} (87%) rename src/layout/components/{sidebar/breadCrumb.vue => lay-sidebar/components/SidebarBreadCrumb.vue} (100%) rename src/layout/components/{sidebar/centerCollapse.vue => lay-sidebar/components/SidebarCenterCollapse.vue} (93%) rename src/layout/components/{sidebar/extraIcon.vue => lay-sidebar/components/SidebarExtraIcon.vue} (71%) rename src/layout/components/{sidebar/fullScreen.vue => lay-sidebar/components/SidebarFullScreen.vue} (100%) rename src/layout/components/{sidebar/sidebarItem.vue => lay-sidebar/components/SidebarItem.vue} (79%) rename src/layout/components/{sidebar/leftCollapse.vue => lay-sidebar/components/SidebarLeftCollapse.vue} (93%) rename src/layout/components/{sidebar/linkItem.vue => lay-sidebar/components/SidebarLinkItem.vue} (93%) rename src/layout/components/{sidebar/logo.vue => lay-sidebar/components/SidebarLogo.vue} (91%) rename src/layout/components/{sidebar/topCollapse.vue => lay-sidebar/components/SidebarTopCollapse.vue} (81%) rename src/layout/components/{tag => lay-tag}/index.scss (100%) rename src/layout/components/{tag => lay-tag}/index.vue (100%) delete mode 100644 src/layout/components/notice/data.ts delete mode 100644 src/layout/components/notice/noticeList.vue delete mode 100644 src/layout/components/search/components/index.ts rename src/layout/{frameView.vue => frame.vue} (98%) rename src/layout/{components/keepAliveFrame => hooks}/useMultiFrame.ts (100%) diff --git a/locales/en.yaml b/locales/en.yaml index 6f829fcf05..37b95a9407 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -182,7 +182,12 @@ menus: pureChildMenuOverflow: Child Menu Overflow Show Tooltip Text status: pureLoad: Loading... + pureMessage: Message + pureNotify: Notify + pureTodo: Todo pureNoMessage: No Message + pureNoNotify: No Notify + pureNoTodo: No Todo login: pureUsername: Username purePassword: Password diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index ddf6ffe909..086ca107f6 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -182,7 +182,12 @@ menus: pureChildMenuOverflow: 菜单超出显示 Tooltip 文字提示 status: pureLoad: 加载中... + pureMessage: 消息 + pureNotify: 通知 + pureTodo: 待办 pureNoMessage: 暂无消息 + pureNoNotify: 暂无通知 + pureNoTodo: 暂无待办 login: pureUsername: 账号 purePassword: 密码 diff --git a/src/components/ReAnimateSelector/src/index.vue b/src/components/ReAnimateSelector/src/index.vue index 2a5ce617da..e10056b84d 100644 --- a/src/components/ReAnimateSelector/src/index.vue +++ b/src/components/ReAnimateSelector/src/index.vue @@ -7,7 +7,7 @@ defineOptions({ name: "ReAnimateSelector" }); -const props = defineProps({ +defineProps({ placeholder: { type: String, default: "请选择动画" @@ -81,7 +81,7 @@ function onMouseleave() { @@ -12,6 +12,6 @@ const props = defineProps({ :path="'res'" :deep="3" :showLength="true" - :data="props.graphData" + :data="graphData" /> diff --git a/src/components/ReFlowChart/src/NodePanel.vue b/src/components/ReFlowChart/src/NodePanel.vue index abe07308e7..53d0d5c1ff 100644 --- a/src/components/ReFlowChart/src/NodePanel.vue +++ b/src/components/ReFlowChart/src/NodePanel.vue @@ -35,7 +35,7 @@ const nodeDragNode = item => {