From cceeb03c9f3c9e929a8a9e9767310baf9480f0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 2 Nov 2022 11:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(button):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=89=80=E6=9C=89=E7=B1=BB=E5=9E=8B=E6=8C=89=E9=92=AE=20active?= =?UTF-8?q?=20=E7=8A=B6=E6=80=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/button/index.less | 13 +++++-------- package/component/src/component/input/index.vue | 5 ++++- package/component/src/component/tagInput/index.vue | 5 ++++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/package/component/src/component/button/index.less b/package/component/src/component/button/index.less index 7b88c9b6..2c6f284f 100644 --- a/package/component/src/component/button/index.less +++ b/package/component/src/component/button/index.less @@ -58,16 +58,13 @@ } .layui-btn:hover { - color: #333; -} - -.layui-btn-warm:hover, -.layui-btn-normal:hover, -.layui-btn-primary:hover, -.layui-btn-danger:hover { opacity: 0.8; filter: alpha(opacity=80); - color: white; +} + +.layui-btn:active { + opacity: 1; + filter: alpha(opacity=100); } .layui-btn-lg { diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index 9b7ebcee..c455b521 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -175,7 +175,10 @@ const showPassword = () => { - + diff --git a/package/component/src/component/tagInput/index.vue b/package/component/src/component/tagInput/index.vue index 1da5a1ca..0ef42eb1 100644 --- a/package/component/src/component/tagInput/index.vue +++ b/package/component/src/component/tagInput/index.vue @@ -319,7 +319,10 @@ defineExpose({ /> - +