<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之旅 廣告
                ## addRadio('name值', '標題', '提示', '數據項', '默認值' [, '屬性', '額外屬性', '額外css類']) 標識符:`radio` 單選的用法和復選類似,請參照復選的用法。 | 參數 | 含義 | 類型 | | --- | --- | --- | | name | name值 | string | | title | 標題 | string | | tips | 提示 | string | | options | 數據項 | array | | default | 默認值 | string | | attr | 屬性 | array | | extra_attr | 額外屬性 | string | | extra_class | 額外css類 | string | ### 一個簡單的單選 ~~~ return ZBuilder::make('form') ->setPageTitle('添加') ->addRadio('city', '選擇城市', '', ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']) ->fetch(); ~~~ ![](https://box.kancloud.cn/985ceca9da511123ec827bbb6eec5d17_234x81.png) ### 帶默認值 ~~~ return ZBuilder::make('form') ->addRadio('city', '選擇城市', '', ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海'], 'gz') ->fetch(); ~~~ ### 定義屬性 可以設置顏色、尺寸 #### 顏色(color) * `primary` (默認) * `default` * `info` * `success` * `warning` * `danger` ~~~ $list_city = ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']; return ZBuilder::make('form') ->addRadio('city', '選擇城市', '請選擇城市', $list_city, '', ['color' => 'danger']) ->fetch(); ~~~ #### 尺寸(size) * `sm` (默認) * `nm` * `lg` ~~~ $list_city = ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']; return ZBuilder::make('form') ->addRadio('city', '選擇城市', '', $list_city, '', ['size' => 'lg']) ->fetch(); ~~~ 兩種屬性一起使用 ~~~ $list_city = ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']; return ZBuilder::make('form') ->addRadio('city', '選擇城市', '', $list_city, '', ['color' => 'danger', 'size' => 'lg']) ->fetch(); ~~~ ### 添加額外屬性 比如默認為禁用狀態 ~~~ $list_city = ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']; return ZBuilder::make('form') ->setPageTitle('添加') ->addRadio('city', '選擇城市', '', $list_city, '', '', 'disabled') ->fetch(); ~~~ ### 添加額外css類 ~~~ $list_city = ['gz' => '廣州', 'sz' => '深圳', 'sh' => '上海']; return ZBuilder::make('form') ->setPageTitle('添加') ->addRadio('city', '選擇城市', '', $list_city, '', '', '', 'active') ->fetch(); ~~~ >[info] 這里添加的css類是自定義的,有特殊要求時才需要,請根據實際開發來決定
                  <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>

                              哎呀哎呀视频在线观看