* zin: refactor inputGroup, support custom input control type

This commit is contained in:
Hao Sun
2023-04-24 19:20:16 +08:00
parent edf1c06147
commit 4704851a8c
+2 -3
View File
@@ -18,10 +18,9 @@ class inputGroup extends wg
$type = $item->prop('type');
if($type === 'addon') return h::span(setClass('input-group-addon'), set($item->props->skip('type,text')), $item->prop('text'));
if($type === 'btn') return new btn(set($item->props->skip('type')));
if($type === 'btn') return new btn(set($item->props->skip('type')));
if($type === 'inputControl')
if($type)
{
$propNames = array_keys(inputControl::getDefinedProps());
return new inputControl