Skip to content

Commit 770e381

Browse files
committed
update: 使用transparentTitle实现导航栏透明
1 parent a58a24a commit 770e381

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

‎pages.json‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,16 +875,12 @@
875875
"navigationBarTitleText": "默认导航栏"
876876
}
877877
},
878-
// #ifdef APP-PLUS || H5
878+
// #ifdef APP-PLUS || H5 || MP-ALIPAY
879879
{
880880
"path": "nav-transparent/nav-transparent",
881881
"style": {
882882
"navigationBarTitleText": "透明渐变导航栏",
883-
"app-plus": {
884-
"titleNView": {
885-
"type": "transparent"
886-
}
887-
}
883+
"transparentTitle": "auto"
888884
}
889885
},
890886
// #endif

‎pages/tabBar/template/template.nvue‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
open: false,
3939
pages: [
4040
// #ifdef APP-PLUS || H5
41-
{
42-
name: '透明渐变样式',
43-
url: 'nav-transparent'
44-
},
4541
{
4642
name: '导航栏带自定义按钮',
4743
url: 'nav-button'
@@ -60,6 +56,10 @@
6056
},
6157
// #endif
6258
// #ifdef APP-PLUS || H5 || MP-ALIPAY
59+
{
60+
name: '透明渐变样式',
61+
url: 'nav-transparent'
62+
},
6363
{
6464
name: '导航栏带图片',
6565
url: 'nav-image'

0 commit comments

Comments
 (0)