From 9705149b2ba91b68be19760c9e460f53460f1c2a Mon Sep 17 00:00:00 2001 From: zhuoqinglian <1035449612@qq.com> Date: Tue, 23 Jun 2026 14:14:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E9=92=AE=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=96=B0=E5=A2=9Eadd=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/CustomButton.vue | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/main/manager-web/src/components/CustomButton.vue b/main/manager-web/src/components/CustomButton.vue index f66359bd..dfb4d263 100644 --- a/main/manager-web/src/components/CustomButton.vue +++ b/main/manager-web/src/components/CustomButton.vue @@ -15,7 +15,7 @@ export default { type: { type: String, default: 'default', - validator: (val) => ['default', 'confirm', 'delete'].includes(val) + validator: (val) => ['default', 'confirm', 'delete', 'add'].includes(val) } } }; @@ -122,4 +122,37 @@ export default { cursor: not-allowed; } } + +.custom-button--add { + width: fit-content; + background: #52c41a; + color: white; + border: none; + border-radius: 6px; + transition: all 0.3s ease; + + &.el-button--small { + font-size: 14px; + } + &.el-button--medium { + padding: 12px 20px; + } + + &:hover { + color: white; + border-color: transparent; + box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3); + transform: translateY(-2px); + } + + &.is-disabled, + &.is-disabled:hover { + background: linear-gradient(to right, #a0e89a, #c4f0c0); + color: rgba(255, 255, 255, 0.6); + border-color: transparent; + box-shadow: none; + transform: none; + cursor: not-allowed; + } +}