mm-vue-tab
v1.0.5
Published
tab compoment
Downloads
4
Readme
mm-vue-tab
简易的移动端多栏tab
Demo
仓库:https://github.com/er567/mm-vue-tab
Installation
npm
npm install mm-vue-tab
Usage
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>
Constructor Options
option:{
name: ['导航一','导航二'], //导航名称
lineColor: '', //默认 #f95d5b
slotName: ['bd-0','bd-1'], //插槽名称
tabClick:function(){ //触发导航
console.log('click tab')
}
}