ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>[danger] 友情提示:构建器目前只支持HisiPHP Pro版本([我要升级](https://www.hisiphp.com/authorize.html)) 由于layui自带的下拉框功能有限,无法满足更多的业务需求,应大家的要求引入了layui的扩展库 [xmSelect](https://gitee.com/maplemei/xm-select?from=hisiphp),此扩展库功能强大,能满足绝大多数的业务要求。 ## 下拉框增强版(select+、xmselect) | 参数 | 类型 | 必须 | 默认 | 说明 | --- | --- | --- | --- | --- | | type | string | Y | | 固定值:select+ | | name | string | Y | | 字段名称 | | title | string | Y | | 标题 | | options | array | Y | | 配置参数,[详细配置](https://maplemei.gitee.io/xm-select/#/component/options](https://maplemei.gitee.io/xm-select/#/component/options?from=hisiphp)) | | grid | Array | N | [12, 12, 12, 12] | [栅格布局](栅格布局.md)| | tips | string | N | | 提示说明 | ![](images/select+.gif) >[]完整示例代码: ``` $assign['buildForm']['items'] = [ [ 'type' => 'select+', 'title' => '下拉框增强版', 'name' => 'area', 'options' => [ 'autoRow' => true, 'filterable' => true, 'name' => 'select_plus', 'tree' => [ 'show' => true, 'showFolderIcon' => true, 'showLine' => true, 'indent' => 20, ], 'data' => [ [ 'value' => 1, 'name' => '广东', 'children' => [ [ 'value' => 11, 'name' => '广州', 'children' => [ [ 'value' => 111, 'name' => '白云区', ], [ 'value' => 112, 'name' => '荔湾区', ], [ 'value' => 113, 'name' => '天河区', ] ], ], [ 'value' => 12, 'name' => '深圳', ], [ 'value' => 13, 'name' => '佛山', ], ], ], [ 'value' => 2, 'name' => '北京', 'children' => [ [ 'value' => 22, 'name' => '朝阳区', ], ], ], [ 'value' => 3, 'name' => '上海', ], ], ], 'tips' => '这是一个下拉框', ], // 更多表单项.... ]; $this->assign($assign); ```