NavBar

API

Attributes

NameDescriptionTypeDefault
itemGap导航栏条目的间距number0
horizontal是否横向booleantrue
initSelect初始化选中位置number0
navs导航栏条目列表object-
tabNavBarClass样式string-
horizontalFadingEdgeEnabled启用横向边缘消失booleanfalse
verticalFadingEdgeEnabled启用竖向边缘消失booleanfalse
fadingEdgeLength消失边缘的长度number0

Events

NameDescriptionType
tab-focus导航条目焦点变化事件Function
tab-click导航条目点击事件Function
tab-select导航条目选中事件Function

Slots

NameDescription
default自定义默认内容

Exposes

MethodDescriptionType
init初始化Function
scrollToPosition滚动到指定位置Function
scrollToTop滚动到顶Function

Source

ComponentDocs

Contributors