From d16f095987f3f2128c524b13d4bd40ca4d7f3fd0 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 15 Sep 2021 16:56:33 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20entity=E8=AF=A6=E6=83=85=E5=A4=B4?= =?UTF-8?q?=E9=83=A8=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/panel.scss | 74 ++++++++++++++++++++++++-------- src/views/charts/Panel.vue | 37 +++++++++------- 2 files changed, 77 insertions(+), 34 deletions(-) diff --git a/src/components/charts/panel.scss b/src/components/charts/panel.scss index 4fba703a..c338e540 100644 --- a/src/components/charts/panel.scss +++ b/src/components/charts/panel.scss @@ -522,34 +522,70 @@ overflow: hidden; .entity-detail__header { display: flex; - justify-content: end; + justify-content: space-between; height: 70px; padding-right: 20px; background-color: #F7F9FB; - & > .el-tabs > .el-tabs__header { // header背景色 - margin: 0; - & > .el-tabs__nav-wrap > .el-tabs__nav-scroll > .el-tabs__nav { - & > .el-tabs__item.is-active { // 激活的tab上边框和背景色 + + .detail-header__title { + display: flex; + align-items: center; + padding-left: 20px; + font-size: 20px; + font-weight: bold; + + .title__icon-circle { + display: flex; + justify-content: center; + align-items: center; + height: 38px; + width: 38px; + border-radius: 50%; + background-color: #B8C1D1; + + i { background-color: white; - border-top: 2px solid #0091ff; - } - & > .el-tabs__active-bar { - display: none; - } - & > div:last-of-type { - padding-right: 20px; - } - & > div:nth-of-type(2) { - padding-left: 20px; + font-size: 17px; } } + .title__name { + padding-left: 10px; + } } - & > .el-tabs > .el-tabs__header > .el-tabs__nav-wrap::after { // 去掉tabs下方边框 - height: 0 !important; - } - &>.el-tabs { // 底部对齐 + .detail-header__operation { display: flex; align-items: end; + + & > .el-tabs > .el-tabs__header { // header背景色 + margin: 0 0 -1px 0; + + & > .el-tabs__nav-wrap > .el-tabs__nav-scroll > .el-tabs__nav { + & > .el-tabs__item { + height: 35px; + line-height: 35px; + } + & > .el-tabs__item.is-active { // 激活的tab上边框和背景色 + background-color: white; + border-top: 2px solid #0091ff; + } + & > .el-tabs__active-bar { + display: none; + } + & > div:last-of-type { + padding-right: 20px; + } + & > div:nth-of-type(2) { + padding-left: 20px; + } + } + } + & > .el-tabs > .el-tabs__header > .el-tabs__nav-wrap::after { // 去掉tabs下方边框 + height: 0 !important; + } + &>.el-tabs { // 底部对齐 + display: flex; + align-items: end; + } } } .entity-detail__body { diff --git a/src/views/charts/Panel.vue b/src/views/charts/Panel.vue index c01e9483..386c3a81 100644 --- a/src/views/charts/Panel.vue +++ b/src/views/charts/Panel.vue @@ -27,22 +27,29 @@
-
- - -
- - - - +
+ + + + {{entity.name}}
+
+
+ + +
+ + + + +