diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index 7a000f30eab6197672a6c332c6408e3c323c39ac..8e9e346ae0a865a8895a8813cecf2aa059668446 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -35,14 +35,14 @@ uni.navigateTo({ url: 'buttonstatus', }) - }, - //用于自动化测试 - checkUniButtonElement(): boolean { - const button = uni.getElementById("testButton") - if(button != null && button instanceof UniButtonElement) { - return true - } - return false + }, + //用于自动化测试 + checkUniButtonElement() : boolean { + const button = uni.getElementById("testButton") + if (button != null && button instanceof UniButtonElement) { + return true + } + return false } } } @@ -65,7 +65,7 @@ - + @@ -97,4 +97,9 @@ background-color: #179b16; border-color: #179b16; } + + .button-hover { + color: rgba(0, 0, 0, 0.6); + background-color: #dedede; + } diff --git a/pages/component/button/buttonstatus.uvue b/pages/component/button/buttonstatus.uvue index fb255740615565c8a469c46dac59504a5076636a..ecaeb94b0e6d1610d5089c81914134c44efbb08f 100644 --- a/pages/component/button/buttonstatus.uvue +++ b/pages/component/button/buttonstatus.uvue @@ -180,7 +180,16 @@ .container { width: 100%; - height: 60px; - /* background-color: orange; */ - } + height: 60px; + } + .is-hover { + color: rgba(255, 255, 255, 0.6); + background-color: #179b16; + border-color: #179b16; + } + + .button-hover { + color: rgba(0, 0, 0, 0.6); + background-color: #dedede; + }