uni-app tabBar配置后选中显示的图标与配置图标不一致

uni-app tabBar配置后选中显示的图标与配置图标不一致

示例代码:

"tabBar": {
    "color": "#C0C4CC",
    "selectedColor": "#fa436a",
    "borderStyle": "black",
    "backgroundColor": "#ffffff",
    "list": [
        {
            "pagePath": "pages/index/index",
            "iconPath": "static/tab-home.png",
            "selectedIconPath": "static/tab-home-rf.png",
            "text": "首页"
        },
        {
            "pagePath": "pages/index/shop",
            "iconPath": "static/tab-cart.png",
            "selectedIconPath": "static/tab-cart-rf.png",
            "text": "商城"
        },
        {
            "pagePath": "pages/notify/notify",
            "iconPath": "static/tab-notify.png",
            "selectedIconPath": "static/tab-notify-rf.png",
            "text": "消息"
        },
        {
            "pagePath": "pages/profile/profile",
            "iconPath": "static/tab-my.png",
            "selectedIconPath": "static/tab-my-rf.png",
            "text": "我的"
        }
    ]
}

操作步骤:

  • 配置3-4个tabBar

预期结果:

  • 选中后显示的图标与配置图标一致

实际结果:

  • 选中后显示的图标与配置图标不一致

bug描述:

  • tabBar配置后选中后显示的图标与配置图标不一致

cf87bba9e3b600f4256554293299ba6c

b79ce1b8d67899464285ee9b763cc978


更多关于uni-app tabBar配置后选中显示的图标与配置图标不一致的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于uni-app tabBar配置后选中显示的图标与配置图标不一致的实战教程也可以访问 https://www.itying.com/category-93-b0.html


用示例代码hello uni-app能出现你的问题吗?

回到顶部