* zin: fix checkBtnGroup style not with custom class.

This commit is contained in:
sunhao
2024-01-29 22:55:13 +08:00
parent 007a280184
commit 3986cb0730
+9 -3
View File
@@ -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;
}
}