From ee888eb3db8d27f0d670fdc238b16fc0dae4230f Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 26 Sep 2024 08:41:51 +0800 Subject: [PATCH] * [refac] set class of the inputGroupAddon widget. --- lib/zin/wg/inputgroupaddon/v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/inputgroupaddon/v1.php b/lib/zin/wg/inputgroupaddon/v1.php index 4d207dddbb..2e7b1c1cc6 100644 --- a/lib/zin/wg/inputgroupaddon/v1.php +++ b/lib/zin/wg/inputgroupaddon/v1.php @@ -22,6 +22,7 @@ class inputGroupAddon extends wg { protected function build() { - return h::span(setClass('input-group-addon'), set($this->props), $this->children()); + $class = $this->prop('class'); + return h::span(setClass("input-group-addon {$class}"), set($this->props), $this->children()); } }