@indfnd/common-mobile 0.0.104 → 0.0.105
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.105](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.104...v0.0.105) (2025-10-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([a65c836](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/a65c836e5411e9ef1bd1ad555eb9ac3f6dea963b))
|
|
11
|
+
|
|
5
12
|
### [0.0.104](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.103...v0.0.104) (2025-10-15)
|
|
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.104";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -69123,13 +69123,10 @@ const __vue2_script$2 = {
|
|
|
69123
69123
|
return;
|
|
69124
69124
|
const sections = Array.from(container.querySelectorAll(".ind-m-menu-section"));
|
|
69125
69125
|
this.sectionPositions = sections.map((section) => {
|
|
69126
|
-
const rect = section.getBoundingClientRect();
|
|
69127
|
-
const containerRect = container.getBoundingClientRect();
|
|
69128
69126
|
return {
|
|
69129
69127
|
id: section.id,
|
|
69130
|
-
top:
|
|
69131
|
-
bottom:
|
|
69132
|
-
element: section
|
|
69128
|
+
top: section.offsetTop,
|
|
69129
|
+
bottom: section.offsetTop + section.offsetHeight
|
|
69133
69130
|
};
|
|
69134
69131
|
});
|
|
69135
69132
|
});
|
|
@@ -69188,21 +69185,18 @@ const __vue2_script$2 = {
|
|
|
69188
69185
|
this.tabActiveKeys[this.active] = index2;
|
|
69189
69186
|
this.$nextTick(() => {
|
|
69190
69187
|
const container = this.getScrollContainer();
|
|
69191
|
-
const
|
|
69192
|
-
|
|
69193
|
-
|
|
69194
|
-
|
|
69195
|
-
const targetRect = targetElement.getBoundingClientRect();
|
|
69196
|
-
const scrollTop = targetRect.top - containerRect.top + container.scrollTop - 20;
|
|
69188
|
+
const targetPosition = this.sectionPositions.find(
|
|
69189
|
+
(pos) => pos.id === `section-${this.active}-${index2}`
|
|
69190
|
+
);
|
|
69191
|
+
if (container && targetPosition) {
|
|
69197
69192
|
container.scrollTo({
|
|
69198
|
-
top:
|
|
69193
|
+
top: targetPosition.top,
|
|
69199
69194
|
behavior: "smooth"
|
|
69200
69195
|
});
|
|
69201
|
-
this.cacheSectionPositions();
|
|
69202
69196
|
}
|
|
69203
69197
|
setTimeout(() => {
|
|
69204
69198
|
this.isManualScroll = false;
|
|
69205
|
-
},
|
|
69199
|
+
}, 500);
|
|
69206
69200
|
});
|
|
69207
69201
|
},
|
|
69208
69202
|
handleTabClick(index2) {
|