{
"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
}]
}
}
}
}

- 发布:2022-12-13 17:38
- 更新:2022-12-14 21:46
- 阅读:230
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: w11
HBuilderX类型: 正式
HBuilderX版本号: 3.6.13
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: 11
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
1
1
预期结果:
1
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 有效
1 个回复
DCloud_UNI_WZF
导航栏设置透明时,暂不支持设置自定义按钮color属性,文档已补充说明,感谢反馈,已加分