TabBar

To create a tab bar without a content area

Import

import { TabBar } from  'mand-mobile-next'

Vue.createApp().component(TabBar.name, TabBar)

Code Examples

API

TabBar Props

PropsDescriptionTypeDefaultNote
v-modelkey of selected menuString--
itemsmenus dataArray<{name: String, label: String, disabled: Boolean}>--
has-inkdisplay underline ink barBooleantrue-
ink-lengththe width of ink barNumber80the percentage width of ink bar, between 1-100
immediatetrigger a change event immediately after initializationBooleanfalse-

TabBar Methods

TabBar Events

@change(item, index, prevIndex)

selected menu index changes

PropsDescriptionType
itemobject of previous selected menuObject
indexindex of current selected menuNumber
indexindex of previous selected menuNumber

TabBar Slot

<md-tab-bar>
  <template slot="item" slot-scope="{ item, currentName, index, items }">

  </template>
</md-tab-bar>