From 3986cb0730d400671a56a73fd46c5771ee49c70b Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 29 Jan 2024 22:55:13 +0800 Subject: [PATCH] * zin: fix checkBtnGroup style not with custom class. --- lib/zin/wg/checkbtngroup/v1.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/zin/wg/checkbtngroup/v1.php b/lib/zin/wg/checkbtngroup/v1.php index dd7587e63b..9a6279dd76 100644 --- a/lib/zin/wg/checkbtngroup/v1.php +++ b/lib/zin/wg/checkbtngroup/v1.php @@ -9,9 +9,8 @@ class checkBtnGroup extends checkList { protected static array $defaultProps = array ( - 'inline' => true, - 'className' => 'check-btn-group', - 'type' => 'radio' + 'inline' => true, + 'type' => 'radio' ); public static function getPageCSS(): string|false @@ -30,4 +29,11 @@ class checkBtnGroup extends checkList { return new checkBtn(set($props)); } + + protected function build(): wg + { + $div = parent::build(); + $div->add(setClass('check-btn-group')); + return $div; + } }