<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之旅 廣告
                ## setFormItems('表單項數據') 與`addFormItems`方法作用相同,也是一次性添加多個表單項,不同之處在于,`setFormItems`方法需要寫上參數名,但不要求順序,比如上一節的例子。 ~~~ return ZBuilder::make('form') ->addFormItems([ ['text', 'title', '標題'], ['textarea', 'summary', '摘要'], ['ueditor', 'content', '內容'], ['image', 'pic', '封面'], ['tags', 'tags', '標簽'], ['file', 'files', '附件'] ]) ->fetch(); ~~~ 用setFormItems方法實現相同的表單 ~~~ return ZBuilder::make('form') ->setFormItems( [ [ 'type' => 'text', 'name' => 'title', 'title' => '標題' ], [ 'type' => 'textarea', 'title' => '摘要', 'name' => 'summary' ], [ 'type' => 'ueditor', 'name' => 'content', 'title' => '內容' ], [ 'type' => 'image', 'name' => 'pic', 'title' => '封面' ], [ 'type' => 'tags', 'name' => 'tags', 'title' => '標簽' ], [ 'type' => 'file', 'name' => 'files', 'title' => '附件' ] ] ) ->fetch(); ~~~ 這個方法一般用的比較少,比如從數據庫讀取表單項數據的就可以用這個方法。 需要注意的是,如果添加的是分組,需指定type和options,比如: ~~~ return ZBuilder::make('form') ->setFormItems( [ [ 'type' => 'text', 'name' => 'title', 'title' => '標題' ], [ 'type' => 'textarea', 'title' => '摘要', 'name' => 'summary' ], [ 'type' => 'ueditor', 'name' => 'content', 'title' => '內容' ], [ 'type' => 'image', 'name' => 'pic', 'title' => '封面' ], [ 'type' => 'tags', 'name' => 'tags', 'title' => '標簽' ], [ 'type' => 'file', 'name' => 'files', 'title' => '附件' ], [ 'type' => 'group', 'options' => [ '微信支付' =>[ [ 'type' => 'text', 'name' => 'appid1', 'title' => 'APPID' ], [ 'type' => 'text', 'name' => 'appkey1', 'title' => 'APPKEY' ] ], '支付寶支付' =>[ [ 'type' => 'text', 'name' => 'appid2', 'title' => 'APPID' ], [ 'type' => 'text', 'name' => 'appkey2', 'title' => 'APPKEY' ] ] ] ] ] ) ->fetch(); ~~~
                  <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>

                              哎呀哎呀视频在线观看