From b3992187148de154c0962cc7b2f59c0e0e37f2eb Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 3 Apr 2023 17:32:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=B1=BB=E5=AD=97=E6=AE=B5=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/mixin.scss | 107 +++++++++++++++++- src/assets/styles/yxk-admin.scss | 87 +++----------- src/views/components/field/index.vue | 49 ++++---- src/views/system/field/commonFields/index.vue | 21 ++++ .../system/field/electronicFields/index.vue | 21 ++++ src/views/system/field/index.vue | 57 ++++++++++ src/views/system/field/systemFields/index.vue | 21 ++++ 7 files changed, 262 insertions(+), 101 deletions(-) create mode 100644 src/views/system/field/commonFields/index.vue create mode 100644 src/views/system/field/electronicFields/index.vue create mode 100644 src/views/system/field/index.vue create mode 100644 src/views/system/field/systemFields/index.vue diff --git a/src/assets/styles/mixin.scss b/src/assets/styles/mixin.scss index 82293ac..49ae8fb 100644 --- a/src/assets/styles/mixin.scss +++ b/src/assets/styles/mixin.scss @@ -563,4 +563,109 @@ [data-theme="light"] & { min-height: calc(100vh - 282px); } -} \ No newline at end of file +} + +@mixin row_tab_style{ + [data-theme="dark"] & { + margin-top: 61px; + border: 1px solid #113d72; + .head-container{ + margin: 20px; + } + .el-table__header{ + border-top: 1px solid #113D72; + } + .tab-nav{ + height: 41px; + line-height: 41px; + margin: -41px 0 30px -1px; + font-weight: bold; + color: #359AFC; + border-bottom: 1px solid #113D72; + li{ + position: relative; + padding: 0 24px; + margin: -1px 30px 0 0; + letter-spacing: 2px; + border-top: 1px solid #113D72; + background-color: #021941; + cursor: pointer; + &::before, + &::after{ + content: ""; + position: absolute; + top: 0; + width: 33px; + height: 41px; + } + &::before{ + left: -15px; + background: url(~@/assets/images/tab_left.png) no-repeat; + background-size: contain; + } + &::after{ + right: -32px; + background: url(~@/assets/images/tab_right.png) no-repeat; + background-size: contain; + } + &:first-child{ + border-left: 1px solid #113d72;; + &::before{ + width: 17px; + height: 17px; + left: -1px; + top: -1px; + border-left: 1px solid $mainColor; + border-top: 1px solid $mainColor; + } + } + &.active-tab-nav{ + color: #fff; + &::before{ + background: url(~@/assets/images/tab_left_active.png) no-repeat; + background-size: contain; + } + &::after{ + background: url(~@/assets/images/tab_right_active.png) no-repeat; + background-size: contain; + } + i{ + display: block; + position: absolute; + bottom: -1px; + left: 0; + width: 100%; + height: 1px; + border-bottom: 1px solid #021941; + } + } + } + .tab-right-img{ + display: block; + width: 93px; + margin: 4px 0 0 -14px; + background: url(~@/assets/images/tab_img.png) no-repeat; + background-size: contain; + } + } + } + [data-theme="light"] & { + margin-top: 0; + .head-container{ + margin: 20px 20px 20px 0; + } + .tab-nav{ + color: #545B65; + padding: 0 0 0 20px; + border-bottom: 1px solid #EDEFF3; + li{ + margin-right: 60px; + &.active-tab-nav{ + padding-bottom: 13px; + color: #0348F3; + border-bottom: 3px solid #0348F3; + } + } + } + } +} diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index c90a20b..c1210f5 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -50,6 +50,20 @@ } } +.tab-container{ + @include bg_color; + @include box_padding; + + .tab-content{ + position: relative; + @include row_tab_style; + + .tab-nav{ + margin-bottom: 0; + } + } +} + .head-container { // padding: 20px; @@ -848,90 +862,17 @@ // tab样式布局 .tab-content{ - margin-top: 40px; border-top: none; - background-color: #021941; &::before{ display: none; } .tab-nav{ display: flex; justify-content: flex-start; - height: 41px; - line-height: 41px; - margin: -41px 0 30px -1px; font-size: 16px; - font-weight: bold; - color: #359AFC; - border-bottom: 1px solid #113D72; li{ - position: relative; - padding: 0 24px; - margin: -1px 30px 0 0; - letter-spacing: 2px; - border-top: 1px solid #113D72; - background-color: #021941; cursor: pointer; - &::before, - &::after{ - content: ""; - position: absolute; - top: 0; - width: 33px; - height: 41px; - } - &::before{ - left: -15px; - background: url(~@/assets/images/tab_left.png) no-repeat; - background-size: contain; - } - &::after{ - right: -32px; - background: url(~@/assets/images/tab_right.png) no-repeat; - background-size: contain; - } - &:first-child{ - border-left: 1px solid #113d72;; - &::before{ - width: 17px; - height: 17px; - left: -1px; - top: -1px; - border-left: 1px solid $mainColor; - border-top: 1px solid $mainColor; - } - } - &.active-tab-nav{ - color: #fff; - &::before{ - background: url(~@/assets/images/tab_left_active.png) no-repeat; - background-size: contain; - } - &::after{ - background: url(~@/assets/images/tab_right_active.png) no-repeat; - background-size: contain; - } - i{ - display: block; - position: absolute; - bottom: -1px; - left: 0; - width: 100%; - height: 1px; - border-bottom: 1px solid #021941; - } - } } - .tab-right-img{ - display: block; - width: 93px; - margin: 4px 0 0 -14px; - background: url(~@/assets/images/tab_img.png) no-repeat; - background-size: contain; - } - } - .el-table__header{ - border-top: 1px solid #113D72; } } diff --git a/src/views/components/field/index.vue b/src/views/components/field/index.vue index b5a1378..35e6bbf 100644 --- a/src/views/components/field/index.vue +++ b/src/views/components/field/index.vue @@ -1,34 +1,29 @@