Skip to content

Tabs 标签页 ​

页签切换容器,支持卡片样式与插槽内容。

基础用法 ​

vue
<template>
  <KbTabs :tabs="[{ label: 'Tab 1', key: '1' }]"><template #1>内容</template></KbTabs>
</template>

API ​

Props ​

属性类型默认值说明
tabsTabItem[][]页签列表(label/key)
modelValuestring''当前激活 key
cardbooleanfalse卡片风格

事件 ​

事件参数说明
update:modelValuestring切换

插槽 ​

名称说明
[key]对应页签内容