uni-app 鸿蒙端展示tabbar时配置的midbutton展示的与app端不一致
uni-app 鸿蒙端展示tabbar时配置的midbutton展示的与app端不一致
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Mac | 12.5.1 | HBuilderX |
测试过的手机
iphone11,nova14pro
示例代码:
tabbar配置项
"tabBar": {
"custom": false,
"color": "#333333",
"selectedColor": "#7554FA",
"backgroundColor": "#fff",
"iconWidth": "20px",
"list": [
//业务员 start
{
"pagePath": "pages/tab-bar/salesman/index",
"iconPath": "/static/images/tab-bar/index.png",
"selectedIconPath": "/static/images/tab-bar/index_active.png",
"text": "首页"
}, {
"pagePath": "pages/tab-bar/cart/index",
"iconPath": "/static/images/tab-bar/shopping_cart.png",
"selectedIconPath": "/static/images/tab-bar//shopping_cart_active.png",
"text": "购物车"
},
{
"pagePath": "pages/tab-bar/analysis/index",
"iconPath": "/static/images/tab-bar/analysis.png",
"selectedIconPath": "/static/images/tab-bar/analysis_active.png",
"text": "数据"
},
{
"pagePath": "pages/tab-bar/main/index",
"iconPath": "/static/images/tab-bar/center.png",
"selectedIconPath": "/static/images/tab-bar/center_active.png",
"text": "我的"
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
}
],
"midButton": {
"width": "80px",
"height": "50px",
"text": "",
"iconPath": "/static/images/tab-bar/yc-init.png",
"iconWidth": "50px",
"backgroundImage": ""
}
}
更多关于uni-app 鸿蒙端展示tabbar时配置的midbutton展示的与app端不一致的实战教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
临时解决方案: 将下方的 har 包 放在 harmony-configs/libs 目录下,删除unpackage之后重新运行
更多关于uni-app 鸿蒙端展示tabbar时配置的midbutton展示的与app端不一致的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
感谢感谢
我看一下这个问题的,感谢反馈
hbuilderx 4.81 已修复

