tabBar borderStyle设置成black后,在开发者工具模拟器看是有灰色分隔线,但是在iphone X上预览和真机调试都是没有线条显示。
下图是开发者工具效果:
下图是真机调试和预览的效果:
以下是app.json代码
{
"pages":[
"pages/index/index",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"dark",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "我的微信",
"navigationBarTextStyle":"black",
"backgroundColor":"#fff"
},
"tabBar": {
"borderStyle":"black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/icon_component.png",
"selectedIconPath": "images/icon_component_HL.png"
},
{
"pagePath": "pages/logs/logs",
"text": "日志",
"iconPath": "images/icon_cloud.png",
"selectedIconPath": "images/icon_cloud_HL.png"
}
]
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
已知问题哈