From b85633a5b3368c1c782e10848989b5a831734190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 30 Sep 2019 18:36:49 +0800 Subject: [PATCH] update --- src/form/checkbox.wc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/form/checkbox.wc b/src/form/checkbox.wc index c632472..2016a90 100644 --- a/src/form/checkbox.wc +++ b/src/form/checkbox.wc @@ -165,11 +165,12 @@ export default class Checkbox { } set value(val) { + log(val, this, this.props.label) if (Array.isArray(val)) { this.props.value = val this.checked = this.props.value.includes(this.props.label) } else { - throw TypeError(':duplex指令需要传入一个数组, 当前为: ' + typeof val) + console.error('checkbox组件的value必须是数组, 当前为: ' + typeof val) } }