弹窗操作
<p>可通过以下方式调整 <code>新增</code> <code>修改</code> <code>详情</code> 的交互逻辑:</p>
<pre><code class="language-php">public function list(): Page
{
$crud = $this-&gt;baseCRUD()
-&gt;headerToolbar([
// 第一个参数为 true, 则启用弹窗模式, 第二个参数为弹窗大小: sm, md, lg
$this-&gt;createButton(true, 'lg'),
// 这里是其他按钮, 批量删除等
...$this-&gt;baseHeaderToolBar(),
])
-&gt;columns([
// ...
// 第一个参数为 true, 则启用弹窗模式, 第二个参数为弹窗大小: sm, md, lg
$this-&gt;rowActions(true, 'lg'),
]);
return $this-&gt;baseList($crud);
}</code></pre>