2***@QQ.COM
2***@QQ.COM
  • 发布:2022-12-13 17:38
  • 更新:2022-12-14 21:46
  • 阅读:120

【报Bug】导航栏 type为transparent时按钮颜色无效

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: w11

HBuilderX类型: 正式

HBuilderX版本号: 3.6.13

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型: 11

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
{  
            "path": "pages/index",  
            "style": {  
                "navigationBarTitleText": "详情展示",  
                "enablePullDownRefresh": true,  
                "app-plus": {  
                    "titleNView": {  
                        "backgroundColor": "#fff",  
                        "type": "default",  
                        // "type": "transparent",  
                        "buttons": [{  
                            "type": "share"  
                            // "color": "rgba(255,0,0,0.5)"  
                        }, {  
                            "type": "none",  
                            "text": "聊天",  
                            "fontSize": "13",  
                            // "color": "#646464",  
                            "width": 77  
                        }]  
                    }  
                }  
            }  
        }

操作步骤:

1

预期结果:

1

实际结果:

1

bug描述:

{  
            "path": "pages/index",  
            "style": {  
                "navigationBarTitleText": "详情展示",  
                "enablePullDownRefresh": true,  
                "app-plus": {  
                    "titleNView": {  
                        "backgroundColor": "#fff",  
                        "type": "default",  
                        // "type": "transparent",  
                        "buttons": [{  
                            "type": "share"  
                            // "color": "rgba(255,0,0,0.5)"  
                        }, {  
                            "type": "none",  
                            "text": "聊天",  
                            "fontSize": "13",  
                            // "color": "#646464",  
                            "width": 77  
                        }]  
                    }  
                }  
            }  
        }  

当 type = transparent 时 buttons的color 无效
当 type = default 时 buttons的color 有效

2022-12-13 17:38 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

导航栏设置透明时,暂不支持设置自定义按钮color属性,文档已补充说明,感谢反馈,已加分

要回复问题请先登录注册