<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 方法 多選列實例: ```php $checkbox = $treeTableHead->checkbox(); ``` 多選列樣式: ```php $checkbox->style(['color' => 'brown']); ``` ## 鏈式調用 ~~~ $treeTable->setTreeTableHead([ $this->treeTableHead->checkbox(), $this->treeTableHead->field('id')->title('ID')->totalRow(), $this->treeTableHead->field('name')->title('賬號')->editText('admin/edit'), $this->treeTableHead->field('pid')->title('PID'), $this->treeTableHead->toolbar()->title('操作項'), ]) ~~~ ## 完整示例 ~~~ /** * demo * @return string * @throws \Throwable * @throws \builder\base\InvalidInstanceException * @throws \builder\base\NotFoundParamsException */ public function actionIndex() { $viewBuilder = $this->viewBuilder; $treeTable = $viewBuilder->treeTable; $treeTable->setId('_tree_table_list'); if ($this->isAjax) { // AJAX $treeTable->setQuery(function () { $params = $this->filteredGet; $query = Test::query()->where([ 'pid' => 0, ]); $query->filterWhere([ 'like', 'name', isset($params['keyword']) ? $params['keyword'] : null, ]); return $query; }) ->setOrderBy(['id' => SORT_DESC]) ->setTtColumns([ 'id', 'name', 'pid', 'isParent' => function ($row) { return 1; }, 'ro_delete3' => function ($row) { return $row['id'] % 2; }, ])->setExtraData(function (Query $query) { return [ 'tol' => $query->count(), 'a' => 100000, ]; }); $render = $viewBuilder->render(); //return $treeTable->data; return $render; } else { // HTML $treeTable->setTitle('管理員列表') ->setExtraDataTpl([ 'tol' => '當前總數量', 'a' => '所在院校', ]) ->setOpenTotalRow() ->registerPointcut(H5::alert('測試一下', 'success')) ->registerPointcut(H5::alert('測試一下'), TreeTableBuilder::POS_END) ->setAjaxRoute('tree-table/index') ->setTreeTableHead([ $this->treeTableHead->checkbox(), $this->treeTableHead->field('id')->title('ID')->totalRow(), $this->treeTableHead->field('name')->title('賬號')->editText('admin/edit'), $this->treeTableHead->field('pid')->title('PID'), $this->treeTableHead->toolbar()->title('操作項'), ]) ->setTreeAsyncOption('tree-table/children') ->setTreeCustomNameOption([]) ->setTreeViewOption([]) ->setTreeDataOption([]) ->setTtRowOperation([ // 詳情 $this->ttRowOperation->modal()->title('詳情')->icon('bi bi-plus-lg f15')->route('admin/detail')->closeBtn(), $this->ttRowOperation->ajax()->title('刪除')->icon('bi bi-x-lg')->route('admin/delete')->method('POST')->group(), $this->ttRowOperation->ajax()->title('我要刪除1')->icon('bi bi-x-lg')->route('admin/delete')->method('POST')->group(), $this->ttRowOperation->ajax()->title('我要刪除2')->icon('bi bi-x-lg')->route('admin/delete')->method('POST')->group(), $this->ttRowOperation->ajax()->title('我要刪除3')->id('ro_delete3')->icon('bi bi-x-lg')->route('admin/delete')->method('POST')->group(), ]) ->setTtToolbarExpandAll() ->setTtToolbarCustom([ // 表單 $this->ttToolbarCustom->modal()->btnClass('layui-btn-primary layui-border')->title('表單')->icon('bi bi-plus-lg f15')->route('admin/add'), // 列表 $this->ttToolbarCustom->modal()->btnClass('layui-btn-primary layui-border-green')->title('列表')->params(['id'])->icon('bi bi-plus-lg f15')->route('admin/detail')->closeBtn(), // 選項卡 $this->ttToolbarCustom->modal()->btnClass('layui-btn-primary layui-border-blue')->title('選項卡')->icon('bi bi-pencil-square f13')->route('admin/edit')->closeBtn(), // AJAX $this->ttToolbarCustom->page()->btnClass('layui-btn-primary layui-border-orange')->title('AJAX')->icon('bi bi-lock')->targetBlank()->params(['id'])->route('admin/add'), ]) ->setTtToolbarFilter([ 'keyword' => $this->ttToolbarFilter->text()->label('關鍵詞')->placeholder('請輸入賬號/姓名')->defaultValue()->attribute(['test' => 1]), //'username' => $this->ttToolbarFilter->datetime()->style(['width' => '800px'])->label('注冊時間')->placeholder('請選擇注冊時間'), //'username' => $this->ttToolbarFilter->datetime()->label('注冊時間')->placeholder('請選擇注冊時間'), 'status' => $this->ttToolbarFilter->select()->label('用戶狀態')->placeholder('請選擇用戶狀態')->options([ '測試' => [ 'normal' => '正常', 'deny' => '禁用', ], '測試2' => [ 'normal1' => '正常1', 'deny1' => '禁用1', ], ])->disabled(['normal']), 'link1' => $this->ttToolbarFilter->selectLink()->label('聯動1')->placeholder('請選擇')->route('admin/link')->initOptions([ 'AAA' => [ 'a' => 'A', 'b' => 'B' ], 'BBB' => [ 'c' => 'C', 'd' => 'D' ], ])->disabled(['c'])->targetLink('link2')->start(), 'link2' => $this->ttToolbarFilter->selectLink()->label('聯動2')->placeholder('請選擇')->route('admin/link')->targetLink('link3')->through(), 'link3' => $this->ttToolbarFilter->selectLink()->label('聯動3')->placeholder('請選擇')->route('admin/link')->targetLink('link4')->through(), 'link4' => $this->ttToolbarFilter->selectLink()->label('聯動2')->placeholder('請選擇')->end(), ]) ->setAutoRequest(true); return $viewBuilder->render(); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看