🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[danger] 友情提示:构建器目前只支持HisiPHP Pro版本([我要升级](https://www.hisiphp.com/authorize.html)) ## 文件(files) | 参数 | 类型 | 必须 | 默认 | 说明 | --- | --- | --- | --- | --- | | type | string | Y | | 固定值:files | | name | string | Y | | 字段名称 | | title | string | Y | | 标题 | | grid | Array | N | [12, 12, 12, 12] | [栅格布局](栅格布局.md)| | url | string | N | 当前控制的upload方法 | 文件上传接口 | | exts | string | N | | 允许上传的文件后缀,多个后缀用`|`隔开 | | tips | string | N | | 提示说明 | >[info] ![](https://img.kancloud.cn/d3/40/d340460e61382e1e674e49ec5943225a_745x154.png) >[]示例代码: ``` $assign['buildForm']['items'] = [ [ 'type' => 'files', 'title' => '多文件', 'name' => 'files', 'exts' => 'doc|docx|xls|xlsx', 'tips' => '允许上传的后缀:doc,docx,xls,xlsx', ], // 更多表单项.... ]; $this->assign($assign); ```