1.0.0 • Published 5 years ago

gmy-navbar v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

gmy-navBar使用说明

父组件传值说明

  • bgcolor 背景色,默认:'#ffffff'
  • top 导航栏高度,同时也是内容距页面顶部的高度只支持单位PX,默认30
  • titleArr 显示的标题文字 无默认值
  • uncheckedStyle 未选中时的样式,为一个样式对象,遵循Vue动态绑定style的语法规则 默认值:{ color:'black', fontSize:'16px', fontWeight:'bold' }
  • checkedStyle 选中时的样式,为一个样式对象,遵循Vue动态绑定style的语法规则 默认值:{ color:'red', borderBottomStyle:'solid', borderBottomColor:'red', borderBottomWidth:'3px' }
  • currentIndex 当前选中项的索引,默认值:0

    函数说明

    @getIndex 选项通过点击切换时返回当前选择项的索引

    使用案列

    <gmy-navBar :titleArr="testData" @getIndex="getIndex" :currentIndex="currentIndex" >