🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 添加列表栏目 addColumn($key, $title, $data = []) ### 参数 | 参数序号 | 参数类型 | 参数名称 | 必须 | 默认值 |参数注释 | | --- | --- | --- |--- |--- |--- | | 1 | string | $name | 是 | | 按钮名称 | | 2 | string | $title | 是 | | 按钮标题 | | 3 | array | $data | 是 | | 其他参数 | | | array | $data.width | 是 | | 弹窗宽度 | | | array | $data.minWidth | 否 | | 弹窗最小宽度 | | | array | $data.type | 否 | | 弹窗类型 template | | | array | $data.template | 否 | | type有值时才需要配置此项 right_button_list | ### 示例 ``` ->addColumn('id' , 'ID', ['width' => '50px']) ->addColumn('module', '所属模块', ['width' => '80px']) ->addColumn('title', '菜单标题', ['width' => '230px']) ->addColumn('menu_type', '类型', ['width' => '50px']) ->addColumn('api_method', '请求方法', ['width' => '90px']) ->addColumn('admin_api', '后台接口', ['width' => '250px']) ->addColumn('is_hide', '隐藏', ['width' => '50px']) ->addColumn('sortnum', '排序', ['width' => '50px']) ->addColumn('right_button_list', '操作', [ 'type' => 'template', 'template' => 'right_button_list' ]) ->addColumn('audio' , '音频类型', [ 'width' => '170px', 'type' => 'template', 'template' => 'audio', 'options' => [] ]) ->addColumn('rate' , '评分', [ 'width' => '170px', 'type' => 'template', 'template' => 'rate', 'options' => [] ]) ->addColumn('progress' , '进度类型', [ 'width' => '150px', 'type' => 'template', 'template' => 'progress', 'options' => [] ]) ->addColumn('nickname' , '标签类型', [ 'width' => '100px', 'type' => 'template', 'template' => 'tag', 'options' => [] ]) ->addColumn('progress' , '进度类型', [ 'width' => '100px', 'type' => 'template', 'template' => 'circle', 'options' => [] ]) ->addColumn('avatar' , '头像', [ 'width' => '60px', 'type' => 'template', 'template' => 'image', 'options' => [] ]) ```