acoolfish
acoolfish
  • 发布:2022-09-27 15:37
  • 更新:2022-09-28 17:45
  • 阅读:54

globalStyle与custom冲突

分类:uni-app

想更改所有页面标题大小,于是配置了globalStyle,但是其他页面配置custom不行了


{  
            "path": "pages/home/home",  
            "style": {  
                "navigationBarTitleText": "首页",  
                "enablePullDownRefresh": false,  
                "navigationStyle": "custom"  
            }  
        },  
"globalStyle": {  
        "navigationBarTextStyle": "white",  
        "navigationBarTitleText": "uni-app",  
        "navigationBarBackgroundColor": "#2979ff",  
        "onReachBottomDistance": 100,  
        "app-plus": {  
            "titleNView": {  
                "titleSize": "40rpx"  
            }  
        }  
    },
2022-09-27 15:37 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

pages item 做相同配置即可覆盖

{  
    "path": "pages/index/index",  
    "style": {  
        "navigationBarTitleText": "uni-app",  
        "app-plus": {  
            "titleNView": {  
                "titleSize": "10px"  
            }  
        }  
    }  
}

要回复问题请先登录注册