This commit is contained in:
yanran200730
2023-03-21 15:17:34 +08:00
parent 56c227ee78
commit b345e1bd13
4 changed files with 13 additions and 2 deletions

View File

@@ -11,7 +11,16 @@ class PageBase {
this.label = appName.replace(/(appName:|["'])/g, '')?.trim()
}
if (/customNavigation/.test(vue)) {
this.style = {navigationStyle: "custom"}
this.style = {
navigationStyle: "custom",
}
if (/navigationBarTextStyle/.test(vue)) {
this.style.navigationBarTextStyle = vue.replace(/[\s\S]*navigationBarTextStyle:([^,]+),[\s\S]*/gm, '$1').replace(/["']/g, '')?.trim()
}
//导航栏背景颜色(同状态栏背景色)
if (/navigationBarBackgroundColor/.test(vue)) {
this.style.navigationBarBackgroundColor = vue.replace(/[\s\S]*navigationBarBackgroundColor:([^,]+),[\s\S]*/gm, '$1').replace(/["']/g, '')?.trim()
}
} else {
this.style = {navigationBarTitleText: this.label}
//是否开启下拉刷新