## 添加列表欄目
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' => []
])
```
- 說明
- 簡介
- 系統安裝
- 后端注意
- 目錄結構
- 數據表
- 用戶注冊
- 前端注意
- 后端接口開發
- 新建模塊
- 創建數據表
- 創建模型
- 創建后臺控制器
- 添加后臺接口
- 創建前臺控制器
- 添加前臺接口
- 常用接口
- 檢查用戶登錄
- 內置接口
- Builder動態頁面
- Builder列表
- addTopButton
- addRightButton
- addColumn
- setDataList
- setDataPage
- getData
- Builder表單
- setFormMethod
- addFormItem
- 單圖image
- 多圖images
- addFormRule
- setFormValues
- getData
- 自定義組件
- 自定義頁面組件
- 自定義Form組件
- 加載第三方js插件
- 常見問題
- 模塊開發者
- 升級指南
- 圖標
- 擴展
- Composer
- ThinkPHP5.1
- GuzzleHttp
- phpspreadsheet
- QueryList
- phpseclib
- 云后臺接口