From 19ecb65183108197ed7524c2e0f5a8f54977144f Mon Sep 17 00:00:00 2001 From: startcode <169514906@qq.com> Date: Wed, 17 Dec 2025 10:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E7=A5=A8=E5=8F=B7?= =?UTF-8?q?=E7=A0=81=E7=BB=B4=E6=8A=A4=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/assets/styles/btn.scss | 170 ++++++++++++++---- .../basicmanage/InvoiceManagement/index.vue | 38 ++-- .../views/maintainSystem/Inspection/index.vue | 164 +++++++++++------ 3 files changed, 261 insertions(+), 111 deletions(-) diff --git a/openhis-ui-vue3/src/assets/styles/btn.scss b/openhis-ui-vue3/src/assets/styles/btn.scss index 3590d8d2..150ed1c9 100644 --- a/openhis-ui-vue3/src/assets/styles/btn.scss +++ b/openhis-ui-vue3/src/assets/styles/btn.scss @@ -1,15 +1,43 @@ @import './variables.module.scss'; +// Element Plus风格的颜色按钮样式 @mixin colorBtn($color) { - background: $color; + display: inline-flex; + align-items: center; + justify-content: center; + padding: 8px 16px; + font-size: 14px; + font-weight: 400; + line-height: 1; + white-space: nowrap; + text-align: center; + background-image: none; + border: 1px solid $color; + border-radius: 4px; + cursor: pointer; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + box-sizing: border-box; + color: #fff; + background-color: $color; - &:hover { - color: $color; + &:hover, + &:focus { + background-color: lighten($color, 10%); + border-color: lighten($color, 10%); + color: #fff; + } - &:before, - &:after { - background: $color; - } + &:active { + background-color: darken($color, 5%); + border-color: darken($color, 5%); + color: #fff; + } + + &:disabled { + color: #c0c4cc; + background-color: #f5f7fa; + border-color: #e4e7ed; + cursor: not-allowed; } } @@ -42,42 +70,110 @@ } .pan-btn { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 8px 16px; font-size: 14px; - color: #fff; - padding: 14px 36px; - border-radius: 8px; + font-weight: 400; + line-height: 1; + white-space: nowrap; + text-align: center; + background-image: none; + border: 1px solid #dcdfe6; + border-radius: 4px; + cursor: pointer; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + box-sizing: border-box; + color: #606266; + background-color: #fff; + + &:hover, + &:focus { + color: #409eff; + border-color: #c6e2ff; + background-color: #ecf5ff; + } + + &:active { + color: #3a8ee6; + border-color: #3a8ee6; + background-color: #ecf5ff; + } + + &:disabled { + color: #c0c4cc; + background-color: #f5f7fa; + border-color: #e4e7ed; + cursor: not-allowed; + } +} + +// Element Plus风格的链接按钮样式 +.pan-btn-link { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 8px 16px; + font-size: 14px; + font-weight: 400; + line-height: 1; + white-space: nowrap; + text-align: center; + background-image: none; border: none; + border-radius: 4px; + cursor: pointer; + transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + box-sizing: border-box; + background-color: transparent; + text-decoration: none; outline: none; - transition: 600ms ease all; - position: relative; - display: inline-block; - - &:hover { - background: #fff; - - &:before, - &:after { - width: 100%; - transition: 600ms ease all; - } + + &:hover, + &:focus { + text-decoration: underline; } - - &:before, - &:after { - content: ''; - position: absolute; - top: 0; - right: 0; - height: 2px; - width: 0; - transition: 400ms ease all; + + &:active { + opacity: 0.8; } + + &:disabled { + color: #c0c4cc; + cursor: not-allowed; + text-decoration: none; + } +} - &::after { - right: inherit; - top: inherit; - left: 0; - bottom: 0; +// 不同颜色的链接按钮 +.blue-btn-link { + @extend .pan-btn-link; + color: #409eff; + + &:hover, + &:focus { + color: #66b1ff; + } +} + +.red-btn-link { + @extend .pan-btn-link; + color: #f56c6c; + + &:hover, + &:focus { + color: #f78989; + } +} + +.info-btn-link { + @extend .pan-btn-link; + color: #909399; + + &:hover, + &:focus { + color: #a6a9ad; } } diff --git a/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue b/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue index fba73240..f94a16c6 100644 --- a/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue +++ b/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue @@ -8,12 +8,12 @@
@@ -119,7 +119,7 @@