* zin: fix control not render picker

This commit is contained in:
sunhao
2023-04-25 15:29:26 +08:00
parent 2829a3acb0
commit 6fc4fbed04
+2 -1
View File
@@ -9,6 +9,7 @@ require_once dirname(__DIR__) . DS . 'checklist' . DS . 'v1.php';
require_once dirname(__DIR__) . DS . 'radiolist' . DS . 'v1.php';
require_once dirname(__DIR__) . DS . 'select' . DS . 'v1.php';
require_once dirname(__DIR__) . DS . 'inputcontrol' . DS . 'v1.php';
require_once dirname(__DIR__) . DS . 'picker' . DS . 'v1.php';
class control extends wg
{
@@ -105,7 +106,7 @@ class control extends wg
$type = $this->prop('type');
if(empty($type))
{
$type = $this->hasProp('items') ? 'select' : 'text';
$type = $this->hasProp('items') ? 'picker' : 'text';
}
$methodName = "build{$type}";