diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index c4f2d5a8e98a48ec36955c2c88313711fc24e6cc..39a825f6ca69dd1dc26ee7fbc229ecb4b3fa26a8 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -11,32 +11,36 @@
-
-
-
- {{page.style["navigationBarTitleText"]}}
-
-
-
-
-
- {{
- childPage.style["navigationBarTitleText"]
- }}
-
-
-
-
-
-
-
+
+
+
+ {{
+ page.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
+ {{
+ childPage.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
+
+
@@ -56,10 +60,10 @@
}
},
computed: {
- hasLeftWin():boolean{
+ hasLeftWin() : boolean {
return !state.noMatchLeftWindow
},
- leftWinActive():string{
+ leftWinActive() : string {
return state.leftWinActive.slice(1)
}
},
@@ -82,20 +86,20 @@
}
},
// #ifdef WEB
- watch:{
- $route: {
- immediate: true,
- handler(newRoute) {
- if (newRoute.matched.length) {
+ watch: {
+ $route: {
+ immediate: true,
+ handler(newRoute) {
+ if (newRoute.matched.length) {
const activeCategoryIndex = this.menu.findIndex(menuItem => menuItem?.pages.some(page => this.leftWinActive && this.leftWinActive === page?.path))
if (activeCategoryIndex > -1) {
this.$nextTick(() => {
((this.$refs.category as ComponentPublicInstance[])[activeCategoryIndex])?.$callMethod('openCollapse', true)
})
}
- }
- }
- }
+ }
+ }
+ }
},
// #endif
}
@@ -122,4 +126,4 @@
display: none;
background-color: rgba(16, 16, 16, 0.5);
}
-
+
diff --git a/pages/tabBar/CSS.uvue b/pages/tabBar/CSS.uvue
index 1179c56a31f56415a62639eeab6e24eda113de0c..02bee0bb36337aacc73a17ccf6cb0dcb25ce3fa8 100644
--- a/pages/tabBar/CSS.uvue
+++ b/pages/tabBar/CSS.uvue
@@ -11,28 +11,30 @@
-
-
-
- {{
- page.style["navigationBarTitleText"]
- }}
-
-
-
-
-
- {{
- childPage.style["navigationBarTitleText"]
- }}
-
-
-
-
-
+
+
+
+ {{
+ page.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
+ {{
+ childPage.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
@@ -41,9 +43,9 @@
diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue
index dc1a6cbac724041827dca0fabb0d18db979c6e5f..b45129003c27acf019ff8c6077e9257bd701d5af 100644
--- a/pages/tabBar/component.uvue
+++ b/pages/tabBar/component.uvue
@@ -11,28 +11,30 @@
-
-
-
- {{
- page.style["navigationBarTitleText"]
- }}
-
-
-
-
-
- {{
- childPage.style["navigationBarTitleText"]
- }}
-
-
-
-
-
+
+
+
+ {{
+ page.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
+ {{
+ childPage.style["navigationBarTitleText"]
+ }}
+
+
+
+
+
@@ -59,15 +61,15 @@
arrowRightIcon: '/static/icons/arrow-right.png' as string.ImageURIString,
pageHiden: false
}
- },
- computed: {
- hasLeftWin():boolean{
- return !state.noMatchLeftWindow
- },
- leftWinActive():string{
- return state.leftWinActive.slice(1)
- }
- },
+ },
+ computed: {
+ hasLeftWin() : boolean {
+ return !state.noMatchLeftWindow
+ },
+ leftWinActive() : string {
+ return state.leftWinActive.slice(1)
+ }
+ },
methods: {
goPage(url : string) {
uni.navigateTo({ url })
@@ -84,23 +86,23 @@
uni.showTabBar()?.catch(_ => { })
}
// #endif
- },
- // #ifdef WEB
- watch:{
- $route: {
- immediate: true,
- handler(newRoute) {
- if (newRoute.matched.length) {
- const activeCategoryIndex = this.menu.findIndex(menuItem => menuItem?.pages.some(page => this.leftWinActive && this.leftWinActive === page?.path))
- if (activeCategoryIndex > -1) {
- this.$nextTick(() => {
- ((this.$refs.category as ComponentPublicInstance[])[activeCategoryIndex])?.$callMethod('openCollapse', true)
- })
- }
- }
- }
- }
- },
+ },
+ // #ifdef WEB
+ watch: {
+ $route: {
+ immediate: true,
+ handler(newRoute) {
+ if (newRoute.matched.length) {
+ const activeCategoryIndex = this.menu.findIndex(menuItem => menuItem?.pages.some(page => this.leftWinActive && this.leftWinActive === page?.path))
+ if (activeCategoryIndex > -1) {
+ this.$nextTick(() => {
+ ((this.$refs.category as ComponentPublicInstance[])[activeCategoryIndex])?.$callMethod('openCollapse', true)
+ })
+ }
+ }
+ }
+ }
+ },
// #endif
onReady() {
// #ifdef UNI-APP-X && APP
diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index d856df0e1948fc63f0bbb3290faac7a28cf32d01..422f1759c256b4e86aec0b78f50cb091a9fb2db8 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -23,7 +23,7 @@
-
{{ page.name }}