Tabbar
Install

Install

支持简单模式,即不指定iconlabel将垂直居中显示。

默认定位为 absolute,适用于 100%页面布局,如果你并非 100% 布局(可以配合使用 view-box 组件),请手动重置样式为 position: fixed


tabbar

tabbar

Props

nametypedefaultdescriptionrequired version
icon-classstringicon's classname--

Events

nameparamsdescriptionrequired version
@on-index-change--emits when value is changedv2.5.4

Slots

namedescriptionrequired version
defaultslot for tabbar items--
tabbar-item

tabbar-item

Props

nametypedefaultdescriptionrequired version
selectedbooleanfalseif selected, you can also use v-model="index" on tabbar to set item selected--
badgestringbadge text, if not specified, the badge will not show--
show-dotbooleanfalseif show the red dot--
linkstringthe url for current tabbar item, can be a url or a vue-router link value--
icon-classstringthe classname for current icon, if tabbar and tabbar-item both specify icon-class, tabbar-item's will be usePulldown--

Events

nameparamsdescriptionrequired version
@on-item-click--emits when tabbar item is clicked--

Slots

namedescriptionrequired version
iconicon area--
icon-activewill show when current item is activatedv2.1.1-rc.8
labellabel text--
Variables

Variables

namedefaultdescriptioninherited name
@tabbar-text-active-color #09BB07 --
@tabbar-index 100 --


Contributors

Contributors

Total commits quantity: 24,Total contributors quantity: 1

airyland

Changelog

Releases

  • v2.7.7 [fix] fix tabbar-item ssr rendering issue
  • v2.7.4 [enhance] add development tip for position usage
  • v2.5.5 [feature] Support replace: true for link #1761
  • v2.5.4 [feature] Add event:on-index-change #1715
  • v2.1.1-rc.8 [feature] Support slot:active-icon
  • v2.1.1-rc.4 [fix] fix this.$slots undefined #1000 @asingingfish
  • v2.1.1-rc.1 [fix] fix variable @tabbar-text-active-color #982 @marsal1212