From 18ff1126729b275dbc5d62469ac3125cadf610dc Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Wed, 12 Jun 2024 12:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89button.disable=E7=8A=B6=E6=80=81=E4=B8=8B?= =?UTF-8?q?=E7=9A=84css=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/button/button.uvue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index 8e9e346a..11e682f3 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -54,7 +54,8 @@ :type="type_enum[type_enum_current].name" :plain="plain_boolean" @click="button_click" @touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn" - :class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'"> + :class="default_style ? (disabled_boolean ? 'custom-btn-disable' : 'custom-btn') : ''" + :hover-class="default_style ? 'is-hover' : 'button-hover'"> {{ text }} @@ -92,6 +93,12 @@ border-color: #1AAD19; } + .custom-btn-disable { + color: rgba(255, 255, 255, 0.7); + background-color: rgba(26, 173, 25, 0.7); + border-color: rgba(26, 173, 25, 0.7); + } + .is-hover { color: rgba(255, 255, 255, 0.6); background-color: #179b16; -- GitLab