@indfnd/common-mobile 0.0.110 → 0.0.111
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.111](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.110...v0.0.111) (2025-10-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([f16a94f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/f16a94f1da07def80c0ab904c128bb5ac108394e))
|
|
11
|
+
|
|
5
12
|
### [0.0.110](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.109...v0.0.110) (2025-10-27)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.110";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -69545,7 +69545,8 @@ const __vue2_script$3 = {
|
|
|
69545
69545
|
apps_menus: [],
|
|
69546
69546
|
title: "",
|
|
69547
69547
|
searchApp: [],
|
|
69548
|
-
myAppList: []
|
|
69548
|
+
myAppList: [],
|
|
69549
|
+
scrollObserver: null
|
|
69549
69550
|
};
|
|
69550
69551
|
},
|
|
69551
69552
|
mounted() {
|
|
@@ -69566,8 +69567,54 @@ const __vue2_script$3 = {
|
|
|
69566
69567
|
this.apps_menus = temps[0].children;
|
|
69567
69568
|
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
69568
69569
|
this.title = temps[0].meta.title;
|
|
69570
|
+
this.$nextTick(() => {
|
|
69571
|
+
this.setupScrollObserver();
|
|
69572
|
+
});
|
|
69573
|
+
},
|
|
69574
|
+
beforeDestroy() {
|
|
69575
|
+
if (this.scrollObserver) {
|
|
69576
|
+
this.scrollObserver.disconnect();
|
|
69577
|
+
}
|
|
69569
69578
|
},
|
|
69570
69579
|
methods: {
|
|
69580
|
+
setupScrollObserver() {
|
|
69581
|
+
const container = document.querySelector(".ind-my-app-container");
|
|
69582
|
+
if (!container)
|
|
69583
|
+
return;
|
|
69584
|
+
const sections = Array.from(container.children);
|
|
69585
|
+
if (sections.length === 0)
|
|
69586
|
+
return;
|
|
69587
|
+
if (this.scrollObserver) {
|
|
69588
|
+
this.scrollObserver.disconnect();
|
|
69589
|
+
}
|
|
69590
|
+
this.scrollObserver = new IntersectionObserver(
|
|
69591
|
+
(entries) => {
|
|
69592
|
+
let mostVisibleSection = null;
|
|
69593
|
+
let maxRatio = 0;
|
|
69594
|
+
entries.forEach((entry) => {
|
|
69595
|
+
if (entry.intersectionRatio > maxRatio) {
|
|
69596
|
+
maxRatio = entry.intersectionRatio;
|
|
69597
|
+
mostVisibleSection = entry.target;
|
|
69598
|
+
}
|
|
69599
|
+
});
|
|
69600
|
+
if (mostVisibleSection) {
|
|
69601
|
+
const index2 = Array.from(container.children).indexOf(mostVisibleSection);
|
|
69602
|
+
if (index2 !== -1 && this.active !== index2) {
|
|
69603
|
+
this.active = index2;
|
|
69604
|
+
this.scrollTabIntoView(index2);
|
|
69605
|
+
}
|
|
69606
|
+
}
|
|
69607
|
+
},
|
|
69608
|
+
{
|
|
69609
|
+
root: container,
|
|
69610
|
+
rootMargin: "-30% 0px -70% 0px",
|
|
69611
|
+
threshold: [0, 0.1, 0.5, 1]
|
|
69612
|
+
}
|
|
69613
|
+
);
|
|
69614
|
+
sections.forEach((section) => {
|
|
69615
|
+
this.scrollObserver.observe(section);
|
|
69616
|
+
});
|
|
69617
|
+
},
|
|
69571
69618
|
handleTabClick(index2) {
|
|
69572
69619
|
if (this.active === index2)
|
|
69573
69620
|
return;
|