多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 配置项`title` > 配置当前表格的标题 参数`string $title` > 值`string`如:`日志列表` 示例代码: ~~~ return ViewBuilder::table() ->setTitle('会员列表') ->setPage(true) ->setHideCheckbox(false) ->setColumns([ 'password', 'username' => table_column_helper('用户名', ['style' => ['min-width' => '100px']]), 'an_mobile' => table_column_helper('电话', ['style' => ['min-width' => '100px']], function($item){ return '+' . $item['an'] . ' ' . $item['mobile']; }), 'email' => table_column_helper('邮箱', ['style' => ['min-width' => '200px']]), ]) ->setQuery(function () { $query = AdminUser::find()->select(['id', 'username', 'password', 'email', 'an', 'mobile']); return $query; }) ->setOrderBy('id DESC') ->setPrimaryKey('id') ->render($this); ~~~ 示例图示: ![](https://img.kancloud.cn/e4/46/e44640810c07deea455a026fcfc9b115_1711x899.png)