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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 組件名`cap4-tap` ---- ### 引入 ```js import Cap4Tap from 'cap4-pc-ui/lib/cap4-tap'; import 'cap4-pc-ui/lib/cap4-tap/css/cap4-tap.css'; ``` ### 基礎用法 <template> <div class="demo-block"> <cap4-tap :tabs="tabs" @changeTab="changeTab" :activeTabIndex="activeTabIndex"></cap4-tap> </div> </template> <script> export default { data() { return { tabs: [ { value: 1, name: '北京' }, { value: 2, name: '上海' }, { value: 3, name: '廣州' } ], activeTabIndex: 0 }; }, methods: { changeTab(index) { this.activeTabIndex = index; console.log('index', index); } } }; </script> ::: demo ```html <template> <div class="demo-block"> <cap4-tap :tabs="tabs" @changeTab="changeTab" :activeTabIndex="activeTabIndex"></cap4-tap> </div> </template> <script> export default { data() { return { tabs: [ { value: 1, name: '北京' }, { value: 2, name: '上海' }, { value: 3, name: '廣州' } ], activeTabIndex: 0 }; }, methods: { changeTab(index) { this.activeTabIndex = index; console.log('index', index); } } }; </script> ``` ::: ### Attributes | 參數 | 說明 | 類型 | 可選值 | 默認值 | |---------- |------------------------------------ |---------- |------------- |-------- | |tabs | 數據 (選填)) | String | — | — | |activeTabIndex | 選中項 (選填)) | Number | — | 0 | |padding | padding樣式 (選填)) | String | — | '5px 10px' | |showPartition | 是否顯示豎線 (選填)) | Boolean | — | true | |showBorder | 是否顯示邊線 (選填)) | Boolean | — | false | |showTriangle | 是否顯示三角 (選填)) | Boolean | — | false | |height | 高度 (選填)) | Number | — | — | |fontSize | 字體 (選填)) | Number | — | 14 | ### Event | 事件名稱 | 說明 | 回調參數 | |------------- |----------- |--------- | |changeTab |切換| index |
                  <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>

                              哎呀哎呀视频在线观看