🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[danger] 友情提示:构建器目前只支持HisiPHP Pro版本([我要升级](https://www.hisiphp.com/authorize.html)) ## 颜色选择器(color) | 参数 | 类型 | 必须 | 默认 | 说明 | --- | --- | --- | --- | --- | | type | string | Y | | 固定值:text | | name | string | Y | | 字段名称 | | title | string | Y | | 标题 | | value | string | N | | 默认值,十六进制颜色码 | | grid | Array | N | [12, 12, 12, 12] | [栅格布局](栅格布局.md)| | tips | string | N | | 提示说明 | | readonly | bool | N | | readonly属性 | | verify | string | N | | layui表单验证规则,[规则文档](https://www.layui.com/doc/modules/form.html#verify) | >[info]![](https://box.kancloud.cn/f5aae8a45ac183c395e4c7830bef16a9_1196x116.jpg) >[]示例代码: ``` $assign['buildForm']['items'] = [ [ 'type' => 'color', 'title' => '颜色', 'name' => 'color', 'verify' => 'required', 'value' => '#000000', 'tips' => '这是一个颜色选择器', ], // 更多表单项..... ]; $this->assign($assign); ```