Skip to content

Commit dd38916

Browse files
committed
fix: 解决状态栏颜色
1 parent 60a18ae commit dd38916

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

example/app.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"pages": ["indexes", "base/index", "custom/index"]
100100
}
101101
],
102+
"themeLocation": "theme.json",
102103
"usingComponents": {
103104
"t-demo": "./components/demo-block/index",
104105
"t-button": "tdesign-miniprogram/button/button",
@@ -107,7 +108,8 @@
107108
},
108109
"window": {
109110
"navigationBarTitleText": "TDesign",
110-
"navigationStyle": "custom"
111+
"navigationStyle": "custom",
112+
"navigationBarTextStyle": "@navTxtStyle"
111113
},
112114
"sitemapLocation": "sitemap.json"
113115
}

example/theme.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"light": {
3+
"navTxtStyle": "black"
4+
},
5+
"dark": {
6+
"navTxtStyle": "white"
7+
}
8+
}

src/result/_example/result-page.wxml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<t-navbar title="Result Page" leftArrow />
12
<view class="page">
23
<view class="demo-section__wrapper">
34
<t-result theme="success" title="成功状态" description="描述文字" />

0 commit comments

Comments
 (0)