Piman
  • Piman 無障礙網頁前端 UI 框架
  • 關於 Piman
  • 常見問答
  • Vue3 版本
    • 設計系統
  • Vue2 版本
    • 設計系統
    • 快速開始
    • Accordion
    • Breadcrumb
    • Buttons
    • Cards
    • Checkbox
    • Dialog
    • Dropdown
    • Form
    • Input
    • Message
    • Pagination
    • Popover
    • Radio
    • Select
    • Switch
    • Tabs
    • Tooltip
    • Tree
  • 更新日誌
  • 成為貢獻者,一起開發 Piman
    • Vue2
      • i18n
      • CSS & SCSS
      • Update
      • Develope Component
Powered by GitBook
On this page
  • 基本使用
  • 輔助資訊
  • 前、後綴
  • Tabs 屬性
  • Tabs-panel 屬性
  • Tabs 事件
  • Demo

Was this helpful?

Export as PDF
  1. Vue2 版本

Tabs

介紹使用 Tabs 頁籤元件

PreviousSwitchNextTooltip

Last updated 1 year ago

Was this helpful?

Tabs 頁籤,通常應用在某一個主題有多種不同內容的情況下使用。

基本使用

<bpa-tabs v-model="demoTabs">
  <bpa-tab-panel name="first-tab" label="First tab">
    This is the content of the first tab
  </bpa-tab-panel>
  <bpa-tab-panel name="second-tab" label="Second tab">
    This is the content of the second tab
  </bpa-tab-panel>
</bpa-tabs>

輔助資訊

<bpa-tabs v-model="demoTabs">
  <bpa-tab-panel name="first-tab" label="First tab" badge="95">
    This is the content of the first tab
  </bpa-tab-panel>
  <bpa-tab-panel name="second-tab" label="Second tab" badge="27">
    This is the content of the second tab
  </bpa-tab-panel>
</bpa-tabs>

前、後綴

<bpa-tabs v-model="demoTabs">
  <bpa-tab-panel name="first-tab" label="First tab" prefix-icon="fas fa-search">
    This is the content of the first tab
  </bpa-tab-panel>
  <bpa-tab-panel name="second-tab" label="Second tab" affix-icon="fas fa-search">
    This is the content of the second tab
  </bpa-tab-panel>
</bpa-tabs>

Tabs 屬性

Name
Value
Type
Default
Required
Note

v-model / value

String

Tabs-panel 屬性

Name
Value
Type
Default
Required
Note

name

String

prefixIcon

String

label

String

affixIcon

String

badge

String || Number

Tabs 事件

Name
Parameters
Desciption

input

當頁籤變更時

Demo

Tabs 介紹示意圖
Radio 介紹示意圖