企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 配置项`partial` > 独立布局,表格独立显示 参数`boolean $partial 是否设置局部视图` > `true` 设置独立布局 > `false` 不设置独立布局 示例代码: ~~~ return ViewBuilder::table() ->setTitle('会员列表') ->setPartial() ->setHideCheckbox(true) ->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', 'status']); return $query; }) ->render($this); ~~~ 示例图示: ![](https://img.kancloud.cn/44/14/4414b8329d1c2f6f250cf3176c183063_1907x907.png)