简易的移动端多栏tab
仓库:https://github.com/er567/mm-vue-tab
npm install mm-vue-tab
import first
import Vue from 'vue'
import Tab from 'mm-vue-tab'
Vue.use(Tab);
use components
<mm-vue-tab :options="option">
<div slot="bd-1">...</div>
<div slot="bd-2">...</div>
</mm-vue-tab>
option:{
name: ['导航一','导航二'], //导航名称
lineColor: '', //默认 #f95d5b
slotName: ['bd-0','bd-1'], //插槽名称
tabClick:function(){ //触发导航
console.log('click tab')
}
}