$loadCityData
$loadCityData : boolean
三级联动 加载省市数据
Class Form
color( $field, $title, string $value = '') : \FormBuilder\components\ColorPicker
$field | ||
$title | ||
string | $value |
frame( $field, $title, $src, string $value = '', string $type = \FormBuilder\components\Frame::TYPE_INPUT) : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
string | $value | |
string | $type |
frameInputs( $field, $title, $src, array $value = array()) : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
array | $value |
frameFiles( $field, $title, $src, array $value = array()) : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
array | $value |
frameImages( $field, $title, $src, array $value = array()) : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
array | $value |
frameInputOne( $field, $title, $src, string $value = '') : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
string | $value |
frameFileOne( $field, $title, $src, string $value = '') : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
string | $value |
frameImageOne( $field, $title, $src, string $value = '') : \FormBuilder\components\Frame
$field | ||
$title | ||
$src | ||
string | $value |
number( $field, $title, null $value = null) : \FormBuilder\components\InputNumber
$field | ||
$title | ||
null | $value |
radio( $field, $title, string $value = '') : \FormBuilder\components\Radio
$field | ||
$title | ||
string | $value |
rate( $field, $title, \FormBuilder\traits\form\number $value) : \FormBuilder\components\Rate
$field | ||
$title | ||
\FormBuilder\traits\form\number | $value |
select( $field, $title, string $value = '') : \FormBuilder\components\Select
$field | ||
$title | ||
string | $value |
selectMultiple( $field, $title, array $value = array()) : \FormBuilder\components\Select
$field | ||
$title | ||
array | $value |
selectOne( $field, $title, string $value = '') : \FormBuilder\components\Select
$field | ||
$title | ||
string | $value |
switches( $field, $title, string $value = '0') : \FormBuilder\components\Switches
$field | ||
$title | ||
string | $value |
upload( $field, $title, $action, string $value = '', string $type = \FormBuilder\components\Upload::TYPE_FILE) : \FormBuilder\components\Upload
$field | ||
$title | ||
$action | ||
string | $value | |
string | $type |
uploadImages( $field, $title, $action, array $value = array()) : \FormBuilder\components\Upload
$field | ||
$title | ||
$action | ||
array | $value |
uploadFiles( $field, $title, $action, array $value = array()) : \FormBuilder\components\Upload
$field | ||
$title | ||
$action | ||
array | $value |
uploadImageOne( $field, $title, $action, string $value = '') : \FormBuilder\components\Upload
$field | ||
$title | ||
$action | ||
string | $value |
uploadFileOne( $field, $title, $action, string $value = '') : \FormBuilder\components\Upload
$field | ||
$title | ||
$action | ||
string | $value |
checkbox( $field, $title, array $value = array()) : \FormBuilder\components\Checkbox
$field | ||
$title | ||
array | $value |
datePicker( $field, $title, string $value = '', string $type = \FormBuilder\components\DatePicker::TYPE_DATE) : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $value | |
string | $type |
date( $field, $title, string $value = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $value |
dateRange( $field, $title, string $startDate = '', string $endDate = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $startDate | |
string | $endDate |
dateTime( $field, $title, string $value = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $value |
dateTimeRange( $field, $title, string $startDate = '', string $endDate = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $startDate | |
string | $endDate |
year( $field, $title, string $value = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $value |
month( $field, $title, string $value = '') : \FormBuilder\components\DatePicker
$field | ||
$title | ||
string | $value |
input( $field, $title, string $value = '', string $type = \FormBuilder\components\Input::TYPE_TEXT) : \FormBuilder\components\Input
获取input组件
$field | ||
$title | ||
string | $value | |
string | $type |
text( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
password( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
textarea( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
url( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
email( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
idate( $field, $title, string $value = '') : \FormBuilder\components\Input
$field | ||
$title | ||
string | $value |
slider( $field, $title, integer $value) : \FormBuilder\components\Slider
$field | ||
$title | ||
integer | $value |
sliderRange( $field, $title, integer $start, integer $end) : \FormBuilder\components\Slider
$field | ||
$title | ||
integer | $start | |
integer | $end |
cascader( $field, $title, array $value = array(), string $type = \FormBuilder\components\Cascader::TYPE_OTHER) : \FormBuilder\components\Cascader
多级联动组件
$field | ||
$title | ||
array | $value | |
string | $type |
city( $field, $title, array|string $province = array(), string $city = '') : \FormBuilder\components\Cascader
省市二级联动
$field | ||
$title | ||
array|string | $province | |
string | $city |
cityArea( $field, $title, array|string $province = array(), string $city = '', string $area = '') : \FormBuilder\components\Cascader
省市区三级联动
$field | ||
$title | ||
array|string | $province | |
string | $city | |
string | $area |
hidden( $field, $value) : \FormBuilder\components\Hidden
$field | ||
$value |
timePicker( $field, $title, string $value = '', string $type = \FormBuilder\components\TimePicker::TYPE_TIME) : \FormBuilder\components\TimePicker
$field | ||
$title | ||
string | $value | |
string | $type |
time( $field, $title, string $value = '') : \FormBuilder\components\TimePicker
$field | ||
$title | ||
string | $value |
timeRange( $field, $title, string $startTime = '', string $endTime = '') : \FormBuilder\components\TimePicker
$field | ||
$title | ||
string | $startTime | |
string | $endTime |
tree( $field, $title, array $value = array(), string $type = \FormBuilder\components\Tree::TYPE_CHECKED) : \FormBuilder\components\Tree
$field | ||
$title | ||
array | $value | |
string | $type |
treeSelected( $field, $title, array $value = array()) : \FormBuilder\components\Tree
$field | ||
$title | ||
array | $value |
treeChecked( $field, $title, array $value = array()) : \FormBuilder\components\Tree
$field | ||
$title | ||
array | $value |
treeData( $id, $title, array $children = array()) : \FormBuilder\components\TreeData
$id | ||
$title | ||
array | $children |
col(integer $span = 24) : \FormBuilder\components\Col
integer | $span |
row(integer $gutter, string $type = '', string $align = '', string $justify = '', string $className = '') : \FormBuilder\components\Row
integer | $gutter | |
string | $type | |
string | $align | |
string | $justify | |
string | $className |
style(boolean $inline = false, string $labelPosition = 'right', integer $labelWidth = 125, boolean $showMessage = true, string $autocomplete = 'off') : \FormBuilder\components\FormStyle
boolean | $inline | |
string | $labelPosition | |
integer | $labelWidth | |
boolean | $showMessage | |
string | $autocomplete |
option( $value, string $label = '', boolean $disabled = false) : \FormBuilder\components\Option
$value | ||
string | $label | |
boolean | $disabled |
formRow(\FormBuilder\components\Row $row) : $this
\FormBuilder\components\Row | $row |
formStyle(\FormBuilder\components\FormStyle $formStyle) : $this
\FormBuilder\components\FormStyle | $formStyle |
append(\FormBuilder\FormComponentDriver $component) : $this
追加组件
\FormBuilder\FormComponentDriver | $component |
prepend(\FormBuilder\FormComponentDriver $component) : $this
开头插入组件
\FormBuilder\FormComponentDriver | $component |
create( $action, array $components = array()) : \FormBuilder\Form
生成表单快捷方法
$action | ||
array | $components |