From b3945c132bf3dae766450a0d1d0e48778163cbbb Mon Sep 17 00:00:00 2001 From: itorr Date: Fri, 12 Aug 2022 18:21:44 +0800 Subject: [PATCH] =?UTF-8?q?ui=20switch=20=E5=8A=A0=E4=B8=8A=20disabled=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8A=A8=E7=94=BB=E3=80=81=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=20iOS=20=E7=82=B9=E5=87=BB=E6=97=B6=E7=9A=84=E5=8F=A0=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/document.less | 1 + html/ui-switch.vue.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html/document.less b/html/document.less index 8f60351..6ebbd42 100644 --- a/html/document.less +++ b/html/document.less @@ -228,6 +228,7 @@ footer{ } } } + transition: opacity .3s ease;; &[data-disabled="true"]{ opacity: 0.5; pointer-events: none; diff --git a/html/ui-switch.vue.js b/html/ui-switch.vue.js index 8065c75..4b4ffd6 100644 --- a/html/ui-switch.vue.js +++ b/html/ui-switch.vue.js @@ -2,7 +2,8 @@ Vue.component('ui-switch',{ template: ` + @touchend.prevent.stop="_switch" + @click.prevent.stop="_switch">