Skip to content
hmhao edited this page Aug 19, 2017 · 2 revisions

参数

  • tabs: Array<Object> // 标签页
    • title: String // 标题
    • content: String // 内容,可以是html字符串
  • index: Number // 当前激活的标签index值,默认值0
  • trigger: String // 标签页触发切换的事件,可选值click | hover,默认值click
  • delay: Number // 标签页切换前等待的时间,当triggerhover时防止鼠标只是经过时引起切换,默认值300
  • active: String // 标签页激活时的class,默认值active

事件

  • beforeSwitch
  • afterSwitch

Clone this wiki locally