0.1.2 • Published 5 years ago

@beisen-phoenix/mobile-tab-bar v0.1.2

Weekly downloads
5
License
ISC
Repository
gitlab
Last release
5 years ago

bottom-navigation

安装

  npm i -S @beisen-phoenix/mobile-tab-bar
  or
  yarn add @beisen-phoenix/mobile-tab-bar
由以下几个子组件构成, 注意: 相同类型的容器组件必须使用对应的Item组件

TabBar.DefaultTabBar 容器组件 // 简版模式

TabBar.DefaultTabBarItem // 简版模式

TabBar.AppTabBar 容器组件 // App模式,支持icon

BottomNav.AppTabBarItem 单个组件

TabBar.DefaultTabBar/ TabBar.AppTabBar API

namedescriptiontypedefault
style样式object
className扩展classnamestring
children内容any
fixedBottom是否固定到底部booleanfalse
homeIndicator是否适配X系列的homeIndicator(34px)booleanfalse

TabBar.AppTabBar API

namedescriptiontypedefault
title标题string
style样式object
onClickItem点击事件Function

TabBar.AppTabBar API

namedescriptiontypedefault
title标题string
style样式object
selected是否被选中boolean
selectedIcon选中的图标颜色string
icon图标ReactElement/url
badge右上角徽标number
dot提醒booleanfalse
onClickItem点击事件Function