<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之旅 廣告
                完整案例 ~~~ public function add( $info=array() ) { $info = [ 'name' => '名稱', 'type' => 3, 'uid' => 2, 'extra' => '描述' ]; $test_data = array( ['key1'=>1,'key2'=>'張三'], ['key1'=>2,'key2'=>'李四'], ['key1'=>3,'key2'=>'王武'], ); return TBuilder('form',$this) ->addTabGroup('基本信息') ->setFormAction( url('action') ) ->addWidgets([ ['name|val','配置標識|用于C/config函數調用,只能使用英文且不能重復'], ['name|text','配置標識|用于C/config函數調用,只能使用英文且不能重復',[ 'validate'=>['required','minlength'=>'2'] ]], ['icon|text|.input_icon_select,.class2,#id1,attr:attr_val,attr2:attr_val2','圖標選擇|選擇圖標樣式'], ['icon_class|text', '圖標類名', ['icon'=>'fa fa-angle-right'] ], //['is_show_difficulty|switch','是否顯示難度'], //['project_difficulty|select','難度',['listdata'=>config('project_difficulty'),'key_relevance'=>'id|name','open_by'=>'is_show_difficulty']], ['type|select','配置類型|系統會根據不同類型解析配置值',[config('CONFIG_TYPE_LIST')]], ['uid|select','客服',[$test_data,'key1|key2']], ['username|text','客服名稱',['tip'=>'客服名稱用于顯示']], ['extra|textarea','配置項|如果是枚舉型 需要配置該項'], ['head_pic_id|cropper','頭像',['pic_wh'=>'400*400'] ], ['head_pic_id2|images','頭像2'], ['id|hidden'], ['birthday|date', '天'], ['birthday1|datetime', '時'], ['birthday2|dateyear', '年'], ['birthday3|datemonth', '月'], ['tags|tags', '標簽',], ]) ->addTabGroup('擴展信息') ->addWidgets([ ['sort|number','排序|用于分組顯示的順序', ['tip'=>'測試:用于分組顯示的順序'] ], ['type2|checkbox','多選|多選測試',[config('CONFIG_TYPE_LIST')]], ['type3|radio','單選|單選測試',[config('yes_no')]], ['is_open|switch','配置類型|系統會根據不同類型解析配置值'], ['content|kindeditor', '內容'], ]) ->setWidgetsValues( $info ) ->fetch(); } ~~~ ![](https://box.kancloud.cn/c7c3bb2e7807bf57fd0813688165215b_1664x798.png) ![](https://box.kancloud.cn/ea9dd23160c08643f4826c168c239f8e_1648x774.png) 修改布局:layout_panel ~~~ ->layoutView('layout_panel') ~~~ ![](https://box.kancloud.cn/2cec08e105f8a0ea37ed9eedd61aae72_1700x856.png) ![](https://box.kancloud.cn/b62bcc1ba213b6f8014e3be3511d8cd1_1683x862.png) ![](https://box.kancloud.cn/7ae187e3a6e108e396a08d1b18cdbd43_1694x891.png) 修改布局:layout_full ~~~ return TBuilder('form',$this) ->addTabGroup('基本信息') ->setFormAction( url('action') ) ->addWidgets([ ['name|val','配置標識|用于C/config函數調用,只能使用英文且不能重復'], ['name|text','配置標識|用于C/config函數調用,只能使用英文且不能重復',[ 'validate'=>['required','minlength'=>'2'] ]], ]) ->addTabGroup('擴展信息') ->addWidgets([ ['sort|number','排序|用于分組顯示的順序', ['tip'=>'測試:用于分組顯示的順序'] ], ['type2|checkbox','多選|多選測試',[config('CONFIG_TYPE_LIST')]], ]) ->setWidgetsValues( $info ) ->layoutView('layout_full') ->fetch(); ~~~ ![](https://box.kancloud.cn/86caa1187e7aa3de8dc55ce624c7499a_1671x516.png) 附加Tab后置內容:appendTabHtml ~~~ $html = <<<str <div class="pull-right mr50 mt50"> <span class="mr20">合計: <span class="warn-price">168.00</span>元</span> <button class="btn btn-primary">去支付</button> </div> str; return TBuilder('form',$this) ->addTabGroup('資源包購買') ->setFormAction( url('action') ) ->addWidgets([ ['name|number','資源包數量'], ]) ->layoutView('layout_panel') ->appendTabHtml($html) ->hideFormButton() ->fetch(); ~~~ ![](https://box.kancloud.cn/e4906645f2266b4eababd9b478cae345_1036x243.png) > **說明:** > addTabGroup用于創建tab分組,其后addWidgets創建tab頁內的組件。兩者組合使用依次調用。 > 當頁面操作為編輯時setWidgetsValues傳入編輯數據值數組
                  <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>

                              哎呀哎呀视频在线观看