uni-app tabbar选中状态文字不显示 仅安卓机出现

uni-app tabbar选中状态文字不显示 仅安卓机出现

| 开发环境 | 版本号 | 项目创建方式 |
|----------|--------|--------------|
| Mac      | 10.15.6| HBuilderX     |
| Android  | 11     |               |

# 示例代码:


"tabBar": {
    "color": "#222222",
    "selectedColor": "#222222 ",
    "borderStyle": "black",
    "backgroundColor": "#ffffff",
    "iconWidth":"20px",
    "list": [{
        "pagePath": "pages/index/index",
        "iconPath": "static/image/tabbar/home_icon1.png",
        "selectedIconPath": "static/image/tabbar/home_icon2.png",
        "text": "首页"
    }, {
        "pagePath": "pages/houses/house",
        "iconPath": "static/image/tabbar/house_icon1.png",
        "selectedIconPath": "static/image/tabbar/house_icon2.png",
        "text": "楼盘"
    }, {
        "pagePath": "pages/client/client",
        "iconPath": "static/image/tabbar/client_icon1.png",
        "selectedIconPath": "static/image/tabbar/client_icon2.png",
        "text": "客户"
    }, {
        "pagePath": "pages/m/m",
        "iconPath": "static/image/tabbar/m_icon1.png",
        "selectedIconPath": "static/image/tabbar/m_icon2.png",
        "text": "消息"
    }, {
        "pagePath": "pages/my/my",
        "iconPath": "static/image/tabbar/my_icon1.png",
        "selectedIconPath": "static/image/tabbar/my_icon2.png",
        "text": "我的"
    }]
}

操作步骤:

tabbar选中状态文字不显示

预期结果:

tabbar选中状态文字显示

实际结果:

tabbar选中状态文字不显示

bug描述:

tabbar选中状态文字不显示。


更多关于uni-app tabbar选中状态文字不显示 仅安卓机出现的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

“selectedColor”: "#222222 ", 多了个空格 改为:“selectedColor”: “#222222”,

更多关于uni-app tabbar选中状态文字不显示 仅安卓机出现的实战教程也可以访问 https://www.itying.com/category-93-b0.html


感谢感谢

回到顶部