标签页组件,分隔内容上有关联但属于不同类别的数据集合。

# 基础用法

ETabs 组件需配合 ETabPane 进行使用,通过 v-model 进行绑定和初始化赋值。

# 卡片模式

设置 type 属性为 card,则显示卡片样式,默认为下横杠模式。

# 增加可操作按钮

通过设置具名 slotbuttons 可在 ETabs 组件的右侧增加自定义能力,通常会放一些可操作按钮。

# 自定义 label

ETabPane 组件提供具名 slot 自定义 label 的内容,比如要添加删除按钮来删除 tab。

# 注意点

ETabs 在切换 tab 时不会销毁 ETabPaneETabPane 的加载方式默认为全部加载,通过给 ETabPane 设置 lazy 属性来实现懒加载功能。懒加载时,未切换到的 ETabPane 不会被加载。

# ETabs

# Props

Name Description Type Required Default
value - String true -
type 风格,basic 基础风格(下划线)、card 卡片风格(高亮) String false basic

# Events

Event Name Description Parameters
input - -

# Slots

Name Description Default Slot Content
label - -
default - -
buttons - -

# ETabPane

# Props

Name Description Type Required Default
name - String true -
label - String false -
lazy - Boolean false -

# Slots

Name Description Default Slot Content
default - -