From 84b7104b4ed958314b37da638bb3c38cf6607101 Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Sat, 26 Aug 2023 20:18:11 +0800 Subject: [PATCH] feat: update button example --- pages/component/button/button.uvue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index 7ceb1623..a630008a 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -43,13 +43,14 @@ :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" - :style="default_style ? 'color: #cccccc': ''">{{text}} + :style="default_style ? 'color:#ffffff;backgroundColor:#1AAD19;borderColor:#1AAD19;': ''" + :hover-class="default_style ? 'is-hover': 'button-hover'">{{text}} - + @@ -72,4 +73,10 @@ height: 200rpx; border: 1px solid #666; } + + .is-hover { + color: rgba(255, 255, 255, 0.6); + background-color: #179b16; + border-color: #179b16; + } \ No newline at end of file -- GitLab