@indfnd/common-mobile 0.0.110 → 0.0.112
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 +16 -0
- package/dist/ind-common-mobile.es.js +51 -4
- package/dist/ind-common-mobile.umd.cjs +2 -2
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.112](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.111...v0.0.112) (2025-11-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 改造 ([d9b834a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d9b834a3220c043464ada9e977608e748521f5ba))
|
|
11
|
+
* 改造 ([3b45245](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3b452456dc1f301ef429146e0e325f22f1a9c88b))
|
|
12
|
+
* 修改 ([e066bda](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/e066bda325b1c47b34299a807b8a99d7fcfc1e92))
|
|
13
|
+
|
|
14
|
+
### [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* 修改 ([f16a94f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/f16a94f1da07def80c0ab904c128bb5ac108394e))
|
|
20
|
+
|
|
5
21
|
### [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
22
|
|
|
7
23
|
|
|
@@ -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.111";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -69498,7 +69498,7 @@ var render$3 = function() {
|
|
|
69498
69498
|
return _c("van-grid-item", { key: idx }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
69499
69499
|
}), 1)], 1), _c("myapp", { attrs: { "icons": _vm.myAppList, "expanded": _vm.disMyapp }, on: { "edit": _vm.edit, "open": _vm.open } }, [_vm.disMyapp ? _c("div", { staticStyle: { "width": "100%", "height": "auto", "background-color": "#fff" } }, [_c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.paginatedApps, function(page, pageIdx) {
|
|
69500
69500
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.paginatedApps.length > 1 ? "20px" : "0" } }, [_c("van-grid", { attrs: { "column-num": 4, "border": false } }, _vm._l(page, function(item2, idx) {
|
|
69501
|
-
return _c("van-grid-item", { key: idx }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.
|
|
69501
|
+
return _c("van-grid-item", { key: idx }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
69502
69502
|
}), 1)], 1)]);
|
|
69503
69503
|
}), 1)], 1) : _vm._e()]), _c("div", [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
69504
69504
|
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
@@ -69506,7 +69506,7 @@ var render$3 = function() {
|
|
|
69506
69506
|
} } }, [_c("div", { staticClass: "customnnnmmmm-tab-item-top", class: { active: _vm.active === idx } }, [_vm._v(" " + _vm._s(tab.meta.title) + " ")]), _c("div", { staticClass: "customnnnmmmm-tab-item-bottom", class: { active: _vm.active === idx } })]);
|
|
69507
69507
|
}), 0)]), _c("div", { staticClass: "ind-my-app-container", style: { height: _vm.disMyapp ? "calc(100vh - 480px)" : "calc(100vh - 270px)" } }, _vm._l(_vm.apps_menus, function(firstLevel, index2) {
|
|
69508
69508
|
return _c("div", { key: index2, ref: "contentSection" + index2, refInFor: true, staticClass: "ind-my-app-container-square" }, [_c("div", { staticClass: "ind-my-app-container-square-title" }, [_vm._v(_vm._s(firstLevel.meta.title))]), _c("van-grid", { attrs: { "column-num": 4, "border": false } }, _vm._l(firstLevel.children, function(item2) {
|
|
69509
|
-
return _c("van-grid-item", { key: item2.meta.permissionId }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.
|
|
69509
|
+
return _c("van-grid-item", { key: item2.meta.permissionId }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
69510
69510
|
}), 1)], 1);
|
|
69511
69511
|
}), 0)]), _c("tabbar")], 1)], 1);
|
|
69512
69512
|
};
|
|
@@ -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;
|