方法:addItem($type,...)

参数 含义 类型
type 表单项标识 string

其它参数按照每个表单项参数顺序提供

返回:Widget

$widget=new Widget();
return $widget
       ->addItem('ueditor','name','内容','','',[],$extra_class='col-xs-10')
       ->setUrl(url('newsSave'))
       ->setAjax('ajaxForm-noJump')
       ->fetch();

等同于

$widget=new Widget();
return $widget
       ->addUeditor('name','内容','','',[],$extra_class='col-xs-10')
       ->setUrl(url('newsSave'))
       ->setAjax('ajaxForm-noJump')
       ->fetch();