收藏
回答

为什么我的tabBar不显示?

我的app.json如下定义:

{

"pages": [

"pages/index/index",

"pages/logs/logs",

"pages/home/home"

],

"window": {

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#fff",

"navigationBarTitleText": "魅落",

"navigationBarTextStyle": "black"

},

"tabBar": {

"custom": true,

"color": "#000000",

"selectedColor": "#dc143c",

"backgroundColor": "#dcdcdc",

"list": [{

"pagePath": "pages/index/index",

"text": "首页"

},{

"pagePath": "pages/logs/logs",

"text": "接口"

},{

"pagePath": "pages/home/home",

"text": "2"

}

]

},

"usingComponents": {},


"sitemapLocation": "sitemap.json"

}


回答关注问题邀请回答
收藏

1 个回答

  • 张从心
    张从心
    2021-06-30

    因为你给添加了一个自定义tab属性

    2021-06-30
    有用
    回复
登录 后发表内容