VEUI

VEUI on GitHub
Play!中文

Tab

Examples

See Tabs component example.

API

Props

NameTypeDefaultDescription
labelstring-The text of the tab.
namestring-The name of the tab.
disabledbooleanfalseWhether the tab is disabled.
tostring | Object-

Routing information of the tab. The type is the same as the to property of the Link component. If to is present, the name prop will be ignored.

matchesfunction(Route, Route): boolean-

After using Vue Router and providing the to property, it is used to customize the logic for determining the currently active Tab. The parameter list is (current: Route, to: Route). Both the current and to parameters are objects of the Vue Router Route type. The default is to use the matches logic of the parent Tabs component.

nativebooleanfalseWhether to force the use of the native <a> element for routing mode.
removableboolean-Whether the tab can be removed.
statusstring-

Tab status.

ValueDescription
successSuccess status.
warningWarning status.
infoNormal information status.
errorError status.

Slots

NameDescription
defaultThe default slot.
itemThe content of the tab item, including the corresponding button/link.
labelThe text of the tab.
Edit this page on GitHubEdit
© Baidu, Inc. 2024