From 4344ae268a6abe692b3d4635187fef02ea274001 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 19 Apr 2024 17:06:39 +0800 Subject: [PATCH] + zin: add the defaultProps of thinkcheckbox wg. --- lib/zin/wg/thinkcheckbox/v1.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/zin/wg/thinkcheckbox/v1.php b/lib/zin/wg/thinkcheckbox/v1.php index 712aca372b..33eddb2ff9 100644 --- a/lib/zin/wg/thinkcheckbox/v1.php +++ b/lib/zin/wg/thinkcheckbox/v1.php @@ -18,6 +18,11 @@ class thinkCheckbox extends thinkRadio 'maxCount?: string', ); + protected static array $defaultProps = array + ( + 'type' => 'checkbox' + ); + protected function buildBody(): array { $items = parent::buildBody();