From 0df60c5597f8646c94dd0bba7884202c023c5fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 5 Sep 2019 20:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=80=89=E5=92=8C=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0readonly=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/checkbox.wc | 49 +++++++++++++++++++++++++++++++++++--------- src/form/radio.wc | 27 +++++++++++++++++++++++- 2 files changed, 65 insertions(+), 11 deletions(-) diff --git a/src/form/checkbox.wc b/src/form/checkbox.wc index 03979de..7b5a7b1 100644 --- a/src/form/checkbox.wc +++ b/src/form/checkbox.wc @@ -31,6 +31,10 @@ } } +:host([readonly]) { + opacity: 0.8; +} + :host([disabled]) { cursor: not-allowed; opacity: 0.6; @@ -136,12 +140,15 @@