# tab
tab栏,一般传参为this.$router.options.routes, tab栏下面会渲染当然选中的链接的页面
# 效果
# 位置
文件目录:resources/src/globalWidget/pagination.vue
# 使用示例
<tab :routes="routes"></tab>
1
import tab from '跟进相对路径引入'
export default {
components: {
tab
},
created() {
this.routes = this.$router.options.routes
}
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 参数
参数名 | 说明 | 类型 | 默认值 |
---|---|---|---|
routes | 路由的对象数组 | Array | [] |
showLoading | 是否在下面展示loading | Boolean | false |
type | 类型 | Number | String |