From d69b5756f5b1aca827bab3309e00e2ce3752beb6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 29 Jul 2022 11:54:29 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95=E4=B9=9F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E9=A2=84=E8=A7=88=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E8=BF=9B=E5=85=A5=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 0bfe88dfb4..cb13e2b738 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -374,8 +374,7 @@ export default { bus.$off('newPanelFromMarket', this.newPanelFromMarket) }, mounted() { - this.$store.commit('setComponentData', []) - this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING) + this.clearCanvas() this.defaultTree(true) this.initCache() const routerParam = this.$router.currentRoute.params @@ -845,7 +844,9 @@ export default { this.searchType = searchTypeInfo }, editFromPanelViewShow() { - this.edit(this.lastActiveNodeData, this.lastActiveNode) + this.$store.commit('setComponentData', []) + this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING) + bus.$emit('PanelSwitchComponent', { name: 'PanelEdit' }) }, editPanelBashInfo(params) { if (params.operation === 'status') { From d5d91b0d73bbfac0d68a56f6e8940d84b6d34a03 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 29 Jul 2022 12:05:53 +0800 Subject: [PATCH 2/6] =?UTF-8?q?style:=20=E6=9B=BF=E6=8D=A2=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E4=B8=BA=E6=96=B0=E4=B8=BB=E9=A2=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/styles/sidebar.scss | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/styles/sidebar.scss b/frontend/src/styles/sidebar.scss index 2092fe4bde..a17f2e2b77 100644 --- a/frontend/src/styles/sidebar.scss +++ b/frontend/src/styles/sidebar.scss @@ -22,7 +22,7 @@ left: 0; z-index: 999; overflow: hidden; - + .horizontal-collapse-transition { transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out; } @@ -63,33 +63,33 @@ border: none; height: 100%; width: 100% !important; - background-color: var(--SiderBG, #ffffff); + background-color: var(--SiderBG, #ffffff); } - + .submenu-title-noDropdown:not(.is-active), .el-submenu__title { color: var(--SiderTextColor, #1e212a); &:hover { background-color: var(--MenuHovorBG, rgba(158,158,158,.2)) !important; - color: var(--TextActive, #409EFF); + color: var(--TextActive, #3370ff); } &:focus { background-color: var(--MenuActiveBG, #ecf5ff) !important; - color: var(--TextActive, #409EFF); + color: var(--TextActive, #3370ff); } } .submenu-title-noDropdown.is-active { background-color: var(--MenuActiveBG, #ecf5ff) !important; - color: var(--TextActive, #409EFF); + color: var(--TextActive, #3370ff); } .is-active > .el-submenu__title { background-color: var(--MenuActiveBG, #ecf5ff) !important; - color: var(--TextActive, #409EFF); + color: var(--TextActive, #3370ff); } - + & .nest-menu .el-submenu > .el-submenu__title, & .el-submenu .el-menu-item { @@ -106,10 +106,10 @@ & .el-submenu .is-active.el-menu-item { min-width: $sideBarWidth !important; background-color: var(--SiderBG) !important; - color: var(--TextActive, #409EFF); - + color: var(--TextActive, #3370ff); + } - + } @@ -160,7 +160,7 @@ overflow: hidden; visibility: hidden; display: inline-block; - + } } } @@ -173,7 +173,7 @@ min-width: $sideBarWidth !important; } - + .withoutAnimation { From 75a373c2226b3e22e994a957fe5db98769e66a49 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 29 Jul 2022 13:19:24 +0800 Subject: [PATCH 3/6] =?UTF-8?q?style:=20=E8=B7=B3=E8=BD=AC=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E8=BE=B9=E8=B7=9D=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/template/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/template/index.vue b/frontend/src/views/panel/template/index.vue index b128637e71..116a0d923a 100644 --- a/frontend/src/views/panel/template/index.vue +++ b/frontend/src/views/panel/template/index.vue @@ -1,6 +1,6 @@