From 4d851bf8287cd1fa3a9809da611e04a934584da2 Mon Sep 17 00:00:00 2001 From: zth Date: Wed, 28 Mar 2018 15:08:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86radio=E5=92=8Cch?= =?UTF-8?q?eckbox=E7=9A=84=E4=B8=80=E4=BA=9Bbug=E4=BB=A5=E5=8F=8A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.radio的样式改成圆点样式 2.checkbox改成原radio的样式 3.添加了一个空的set方法解决radio报错的问题 4.给input标签添加hidden属性解决当页面出现滚动条时点击单选框或多选框会跳回页面顶部的问题 --- src/components/checkbox/index.vue | 30 +++++++++++++++++------------- src/components/radio/index.vue | 30 +++++++++++++++++------------- src/scss/_checkbox.scss | 23 ++++++++++++++++++++--- 3 files changed, 54 insertions(+), 29 deletions(-) diff --git a/src/components/checkbox/index.vue b/src/components/checkbox/index.vue index e866c85..30a4516 100644 --- a/src/components/checkbox/index.vue +++ b/src/components/checkbox/index.vue @@ -1,20 +1,21 @@