基于vant+vue2.0移动端的自动生成底部菜单栏的配置;
致力于最简单的在创建路由的时候就自动生成底部tabbar
首先创建一个FootNav底部菜单导航栏的公共组件,在components目录下创建一个FootNav文件夹和vue组件。
index.vue
<template>
<div class="bottom_btn">
<van-tabbar v-model="active">
<van-tabbar-item
v-for="(item, index)
原创
2020-12-05 15:19:49 ·
1604 阅读 ·
0 评论