From 4d98d3bbef8c5ea3535ce185338d8686e44a1b0e Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 11 Jul 2023 21:19:33 +0800 Subject: [PATCH] * zin: set default emptyValue to picker. --- lib/zin/wg/picker/v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/picker/v1.php b/lib/zin/wg/picker/v1.php index 4310a3d577..329d51bfae 100644 --- a/lib/zin/wg/picker/v1.php +++ b/lib/zin/wg/picker/v1.php @@ -35,7 +35,8 @@ class picker extends wg 'afterRender?: function', // 渲染完成后的回调函数。 'beforeDestroy?: function', // 销毁前的回调函数。 'name?: string', // 作为表单项的名称。 - 'value?: string|string[]', // 默认值。 + 'value?: string|string[]', // 默认值。 + 'emptyValue?: string=",0"', // 默认值。 'onChange?: function', // 值变更回调函数。 'disabled?: boolean', // 是否禁用。 'multiple?: boolean|number=false', // 是否允许选择多个值,如果指定为数字,则限制多选的数目,默认 `false`。