From ccfe2f643dc4bc5506e760dc5d71960c6188e51b Mon Sep 17 00:00:00 2001 From: ewall <1054064180@qq.com> Date: Sat, 21 Mar 2020 22:41:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Atabbar=20=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 ++++++++ src/components/Tabbar/index.vue | 44 +++++++++++++++++++++++++++++++++ src/components/Vant/index.js | 6 ++++- 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 src/components/Tabbar/index.vue diff --git a/src/App.vue b/src/App.vue index d3e2cd8..14a6762 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,15 @@ + + + diff --git a/src/components/Tabbar/index.vue b/src/components/Tabbar/index.vue new file mode 100644 index 0000000..6c74c0a --- /dev/null +++ b/src/components/Tabbar/index.vue @@ -0,0 +1,44 @@ + + + + + 首页 + 分类 + 购物车 + 我的 + + + + + + + + + diff --git a/src/components/Vant/index.js b/src/components/Vant/index.js index 4c4e878..c0ad674 100644 --- a/src/components/Vant/index.js +++ b/src/components/Vant/index.js @@ -18,7 +18,9 @@ import { SwipeItem, Loading, Tag, - CountDown + CountDown, + Tabbar, + TabbarItem } from 'vant' Vue.use(Toast) @@ -38,3 +40,5 @@ Vue.use(Toast) .use(Loading) .use(Tag) .use(CountDown) + .use(Tabbar) + .use(TabbarItem)