@uni-helper/vite-plugin-uni-pages 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +10 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -761,6 +761,16 @@ class PageContext {
|
|
|
761
761
|
debug.subPages(this.subPageMetaData);
|
|
762
762
|
}
|
|
763
763
|
async getTabBarMerged() {
|
|
764
|
+
const tabBarItems = [];
|
|
765
|
+
for (const [_, page] of this.pages) {
|
|
766
|
+
const tabbar = await page.getTabBar();
|
|
767
|
+
if (tabbar) {
|
|
768
|
+
tabBarItems.push(tabbar);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
if (tabBarItems.length === 0) {
|
|
772
|
+
return this.pagesGlobConfig?.tabBar;
|
|
773
|
+
}
|
|
764
774
|
const tabBar = {
|
|
765
775
|
...this.pagesGlobConfig?.tabBar,
|
|
766
776
|
list: this.pagesGlobConfig?.tabBar?.list || []
|
|
@@ -769,13 +779,6 @@ class PageContext {
|
|
|
769
779
|
for (const item of tabBar.list) {
|
|
770
780
|
pagePaths.set(item.pagePath, true);
|
|
771
781
|
}
|
|
772
|
-
const tabBarItems = [];
|
|
773
|
-
for (const [_, page] of this.pages) {
|
|
774
|
-
const tabbar = await page.getTabBar();
|
|
775
|
-
if (tabbar) {
|
|
776
|
-
tabBarItems.push(tabbar);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
782
|
tabBarItems.sort((a, b) => a.index - b.index);
|
|
780
783
|
for (const item of tabBarItems) {
|
|
781
784
|
if (!pagePaths.has(item.pagePath)) {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -727,6 +727,16 @@ class PageContext {
|
|
|
727
727
|
debug.subPages(this.subPageMetaData);
|
|
728
728
|
}
|
|
729
729
|
async getTabBarMerged() {
|
|
730
|
+
const tabBarItems = [];
|
|
731
|
+
for (const [_, page] of this.pages) {
|
|
732
|
+
const tabbar = await page.getTabBar();
|
|
733
|
+
if (tabbar) {
|
|
734
|
+
tabBarItems.push(tabbar);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
if (tabBarItems.length === 0) {
|
|
738
|
+
return this.pagesGlobConfig?.tabBar;
|
|
739
|
+
}
|
|
730
740
|
const tabBar = {
|
|
731
741
|
...this.pagesGlobConfig?.tabBar,
|
|
732
742
|
list: this.pagesGlobConfig?.tabBar?.list || []
|
|
@@ -735,13 +745,6 @@ class PageContext {
|
|
|
735
745
|
for (const item of tabBar.list) {
|
|
736
746
|
pagePaths.set(item.pagePath, true);
|
|
737
747
|
}
|
|
738
|
-
const tabBarItems = [];
|
|
739
|
-
for (const [_, page] of this.pages) {
|
|
740
|
-
const tabbar = await page.getTabBar();
|
|
741
|
-
if (tabbar) {
|
|
742
|
-
tabBarItems.push(tabbar);
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
748
|
tabBarItems.sort((a, b) => a.index - b.index);
|
|
746
749
|
for (const item of tabBarItems) {
|
|
747
750
|
if (!pagePaths.has(item.pagePath)) {
|