Skip to content
On this page

VTabs

The Tabs screen with a content area

Import

js
import { VTabs, VTabPane } from 'vui-vc-next'

app.component(VTabs.name, VTabs)
app.component(VTabPane.name, VTabPane)

API

Tabs Props

PropsDescriptionTypeDefaultNote
v-modelname of selected tabString--
immediatetrigger a change event immediately after initializationBooleanfalse-

TabPane Props

PropsDescriptionTypeDefaultNote
nameunique nameString-required
labeltab labelString-required
disableddisable paneBooleanfalse-

Tabs Methods

reflowTabBar()

relayout tabbar

Tabs Events

@change(tab)

when user selects tab

PropsDescriptionType
tabobject of selected tabObject:{name: String, label: String, disabled: Boolean}