有个关于tabbar的问题

来源:2-14 加入tabbar选项卡

Jyuloeng

2019-08-11 14:08:55

"tabBar": {
"list": [
{
"pagePath": "pages/posts/posts",
"text": "阅读"
},
{
"pagePath": "pages/posts/posts",
"text": "demo"
}
]
},

我在app.json里面配置了tabbar,那是怎么判断这个tabbar会出现在哪个页面的呢,为什么welcome这个页面和posts-detail这个页面没有tabbar呢请问

写回答

1回答

好帮手慕慕子

2019-08-11

同学你好, tabbar只在list数组中配置的pagesPath中对应的页面出现哦。

示例:如果在app.json中配置一个pagesPath路径为welcome,那么在首页就会出现tabbar哦

http://img.mukewang.com/climg/5d4fbbed0001d06215670630.jpg

如果帮助到了你,欢迎采纳!

祝学习愉快~~~~


0

0 学习 · 6815 问题

查看课程