帮助用户依赖导航在各个页面中进行跳转。顶部导航提供全局性的类目和功能.

API

参数 说明 类型 默认值
componentClass 自定义组件元素 element type nav
expanded 设置导航条是否展开,针对小屏幕 bool false
fixedBottom 设置固定在底部 bool false
fixedTop 设置固定在顶部 bool false
inverse 黑色背景 bool false
onToggle 切换导航条显示隐藏 针对小屏幕 func -
参数 说明 类型 默认值
children 切换的文字或图标 element type 如例子
onClick 自定义方法 func -