@indfnd/common-mobile 0.0.104 → 0.0.106

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,20 @@
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.106](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.105...v0.0.106) (2025-10-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改 ([ca53302](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/ca53302ebffecb734e4055fc3e7bd2442a6836f3))
11
+
12
+ ### [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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 修改 ([a65c836](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/a65c836e5411e9ef1bd1ad555eb9ac3f6dea963b))
18
+
5
19
  ### [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
20
 
7
21
 
@@ -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.103";
5
+ const version$2 = "0.0.105";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -69128,8 +69128,7 @@ const __vue2_script$2 = {
69128
69128
  return {
69129
69129
  id: section.id,
69130
69130
  top: rect.top - containerRect.top + container.scrollTop,
69131
- bottom: rect.bottom - containerRect.top + container.scrollTop,
69132
- element: section
69131
+ bottom: rect.bottom - containerRect.top + container.scrollTop
69133
69132
  };
69134
69133
  });
69135
69134
  });
@@ -69164,12 +69163,11 @@ const __vue2_script$2 = {
69164
69163
  this.tabActiveKeys[this.active] = this.activeKey;
69165
69164
  return;
69166
69165
  }
69167
- const viewportMiddle = scrollTop + containerHeight / 2;
69166
+ const viewportTop = scrollTop + 60;
69168
69167
  let activeIndex = 0;
69169
69168
  let minDistance = Infinity;
69170
69169
  this.sectionPositions.forEach((section, index2) => {
69171
- const sectionMiddle = (section.top + section.bottom) / 2;
69172
- const distance = Math.abs(sectionMiddle - viewportMiddle);
69170
+ const distance = Math.abs(section.top - viewportTop);
69173
69171
  if (distance < minDistance) {
69174
69172
  minDistance = distance;
69175
69173
  activeIndex = index2;
@@ -69188,21 +69186,20 @@ const __vue2_script$2 = {
69188
69186
  this.tabActiveKeys[this.active] = index2;
69189
69187
  this.$nextTick(() => {
69190
69188
  const container = this.getScrollContainer();
69191
- const targetId = `section-${this.active}-${index2}`;
69192
- const targetElement = document.getElementById(targetId);
69193
- if (container && targetElement) {
69189
+ const targetSection = container.querySelector(`#section-${this.active}-${index2}`);
69190
+ if (container && targetSection) {
69194
69191
  const containerRect = container.getBoundingClientRect();
69195
- const targetRect = targetElement.getBoundingClientRect();
69196
- const scrollTop = targetRect.top - containerRect.top + container.scrollTop - 20;
69192
+ const sectionRect = targetSection.getBoundingClientRect();
69193
+ const scrollPosition = sectionRect.top - containerRect.top + container.scrollTop;
69194
+ const offset3 = 20;
69197
69195
  container.scrollTo({
69198
- top: scrollTop,
69196
+ top: scrollPosition - offset3,
69199
69197
  behavior: "smooth"
69200
69198
  });
69201
- this.cacheSectionPositions();
69202
69199
  }
69203
69200
  setTimeout(() => {
69204
69201
  this.isManualScroll = false;
69205
- }, 800);
69202
+ }, 500);
69206
69203
  });
69207
69204
  },
69208
69205
  handleTabClick(index2) {