<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 表頭(必須) > 圖片演示: ![](https://img.kancloud.cn/11/2d/112d488aaf8e24281efe5759471776dd_1620x691.png) > 說明: 設置表頭。 方法:`cols($callable)` * 參數 **callable** (必須),例: ```php cols(function($state){ $cols=[ 'id'=>['type'=>'checkbox'], 'name'=>['title'=>'姓名'], 'age'=>['title'=>'年齡','align'=>'center','hide'=>'mobile'], 'create_time'=>['title'=>'添加時間', 'align'=>'center','hide'=>'mobile_hide','templet'=>'datetime'], 'action'=>[ 'title'=>'操作', 'templet'=>'action', 'options'=>[ 'edit'=>['type'=>'open_popup','title'=>'詳情','icon'=>'layui-icon layui-icon-survey','url'=>url('edit')] ] ] ]; switch($state){ case 11: $cols['action']['options']+=[ 22=>['type'=>'async_event','title'=>'移入回收站','dropdown'=>true], ]; break; case 22: $cols['action']['options']+=[ 11=>['type'=>'async_event','title'=>'還原','dropdown'=>true], 99=>['type'=>'async_event','title'=>'永久刪除','dropdown'=>true] ]; break; } return $cols; }); ``` > 表頭配置詳見:[表頭配置](http://www.hmoore.net/worklz/yunj_admin_universal/2024526) > 示例: 設置`正常(11)`狀態表頭為`中文姓名`+`英文姓名`+`年齡`+`添加時間`+`更新時間`+`操作(詳情、移入回收站)`;`回收站(22)`狀態表頭為`中文姓名`+`英文姓名`+`年齡`+`添加時間`+`更新時間`+`操作(詳情、還原、永久刪除)` * 方法如下: ~~~ $builder=YT('general_example')->cols(function($state){ $cols=[ 'id'=>['type'=>'checkbox'], 'name_cn'=>['title'=>'中文姓名'], 'name_en'=>['title'=>'英文姓名'], 'age'=>['title'=>'年齡','align'=>'center','hide'=>'mobile'], 'create_time'=>['title'=>'添加時間', 'align'=>'center','hide'=>'mobile_hide','templet'=>'datetime'], 'update_time'=>['title'=>'更新時間', 'align'=>'center','hide'=>'yes','templet'=>'datetime'], 'action'=>[ 'title'=>'操作', 'templet'=>'action', 'options'=>[ 'edit'=>['type'=>'open_popup','title'=>'詳情','icon'=>'layui-icon layui-icon-survey','url'=>url('edit')] ] ] ]; switch($state){ case 11: $cols['action']['options']+=[ 22=>['type'=>'async_event','title'=>'移入回收站','dropdown'=>true], ]; break; case 22: $cols['action']['options']+=[ 11=>['type'=>'async_event','title'=>'還原','dropdown'=>true], 99=>['type'=>'async_event','title'=>'永久刪除','dropdown'=>true] ]; break; } return $cols; }) ~~~
                  <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>

                              哎呀哎呀视频在线观看