@indfnd/common-mobile 0.0.101 → 0.0.103
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 +20 -0
- package/dist/ind-common-mobile.es.js +37 -15
- package/dist/ind-common-mobile.umd.cjs +15 -15
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/variables/theme3.less +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.103](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.102...v0.0.103) (2025-10-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([b621c2f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b621c2fef76a60c4c306714364cbc73263ea17f9))
|
|
11
|
+
|
|
12
|
+
### [0.0.102](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.101...v0.0.102) (2025-10-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 兼容湖北 ([06e574b](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/06e574ba7f29d13fd0a4f32bcfc19cd4858b94ec))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 我的应用轮播展示 ([f68faeb](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/f68faeb84ab08ec4fbcc0826390232f8cab84999))
|
|
23
|
+
* 修改 ([80fdf17](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/80fdf17e5f30efef478c05cc969d9bd531ab40cf))
|
|
24
|
+
|
|
5
25
|
### [0.0.101](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.100...v0.0.101) (2025-10-10)
|
|
6
26
|
|
|
7
27
|
### [0.0.100](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.99...v0.0.100) (2025-09-26)
|
|
@@ -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.102";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -43341,7 +43341,14 @@ const __vue2_script$o = {
|
|
|
43341
43341
|
computed: {
|
|
43342
43342
|
finished() {
|
|
43343
43343
|
let isFinished = this.curData.length == this.datas.length || this.curData.length == this.total;
|
|
43344
|
-
console.log(
|
|
43344
|
+
console.log(
|
|
43345
|
+
"isFinished",
|
|
43346
|
+
"this.curData.length",
|
|
43347
|
+
this.curData.length,
|
|
43348
|
+
"this.total",
|
|
43349
|
+
this.total,
|
|
43350
|
+
isFinished
|
|
43351
|
+
);
|
|
43345
43352
|
return isFinished;
|
|
43346
43353
|
},
|
|
43347
43354
|
paginationParams() {
|
|
@@ -44723,7 +44730,15 @@ const __vue2_script$j = {
|
|
|
44723
44730
|
initConfig() {
|
|
44724
44731
|
var _a, _b;
|
|
44725
44732
|
if (this.xmlInfo) {
|
|
44726
|
-
const {
|
|
44733
|
+
const {
|
|
44734
|
+
dataUrl,
|
|
44735
|
+
methods,
|
|
44736
|
+
pageBtnText,
|
|
44737
|
+
columns: columns2,
|
|
44738
|
+
searchFormFields,
|
|
44739
|
+
formFieldList,
|
|
44740
|
+
subTable
|
|
44741
|
+
} = generateConfigByXml(this.xmlInfo, this.isTransfer);
|
|
44727
44742
|
this.pageBtnText = pageBtnText;
|
|
44728
44743
|
this.columns = columns2;
|
|
44729
44744
|
this.dataUrl = dataUrl;
|
|
@@ -64049,7 +64064,7 @@ var render$5 = function() {
|
|
|
64049
64064
|
var _vm = this;
|
|
64050
64065
|
var _h = _vm.$createElement;
|
|
64051
64066
|
var _c = _vm._self._c || _h;
|
|
64052
|
-
return _c("div", {
|
|
64067
|
+
return _c("div", { on: { "touchstart": function($event) {
|
|
64053
64068
|
return _vm.ontouchstart(_vm.item);
|
|
64054
64069
|
}, "touchmove": function($event) {
|
|
64055
64070
|
return _vm.ontouchmove(_vm.item);
|
|
@@ -64059,7 +64074,7 @@ var render$5 = function() {
|
|
|
64059
64074
|
return _vm.ontouchend(_vm.item);
|
|
64060
64075
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-badge", { attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
64061
64076
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
64062
|
-
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", { staticStyle: { "font-size": "12px", "display": "-webkit-box", "-webkit-box-orient": "vertical", "-webkit-line-clamp": "
|
|
64077
|
+
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", { staticStyle: { "font-size": "12px", "display": "-webkit-box", "-webkit-box-orient": "vertical", "-webkit-line-clamp": "1", "overflow": "hidden", "text-overflow": "ellipsis", "line-height": "1.2", "max-height": "2.4em" } }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])])]);
|
|
64063
64078
|
};
|
|
64064
64079
|
var staticRenderFns$5 = [];
|
|
64065
64080
|
const __vue2_script$5 = {
|
|
@@ -68941,9 +68956,7 @@ var render$2 = function() {
|
|
|
68941
68956
|
var _vm = this;
|
|
68942
68957
|
var _h = _vm.$createElement;
|
|
68943
68958
|
var _c = _vm._self._c || _h;
|
|
68944
|
-
return _c("div", { staticClass: "ind-m-app-center" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "ind-m-app-page" }, [_c("div", { staticClass: "ind-m-placeholder" }, [_c("van-search", { attrs: { "placeholder": "\
|
|
68945
|
-
return [_c("div", { on: { "click": _vm.onSearch } }, [_vm._v("\u641C\u7D22")])];
|
|
68946
|
-
}, proxy: true }, { key: "left-icon", fn: function() {
|
|
68959
|
+
return _c("div", { staticClass: "ind-m-app-center" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "ind-m-app-page" }, [_c("div", { staticClass: "ind-m-placeholder" }, [_c("van-search", { attrs: { "placeholder": "\u641C\u7D22\u5E94\u7528" }, on: { "search": _vm.onSearch, "clear": _vm.onClear }, scopedSlots: _vm._u([{ key: "left-icon", fn: function() {
|
|
68947
68960
|
return [_c("van-icon", { attrs: { "name": "search" } })];
|
|
68948
68961
|
}, proxy: true }]), model: { value: _vm.searchValue, callback: function($$v) {
|
|
68949
68962
|
_vm.searchValue = $$v;
|
|
@@ -68951,8 +68964,10 @@ var render$2 = function() {
|
|
|
68951
68964
|
_vm.show = $$v;
|
|
68952
68965
|
}, expression: "show" } }, [_c("van-grid", { attrs: { "column-num": 4 } }, _vm._l(_vm.searchApp, function(item2, idx) {
|
|
68953
68966
|
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.rmFromMyAppsClick } })], 1);
|
|
68954
|
-
}), 1)], 1), _c("div", { staticClass: "ind-m-myApp-container" }, [_c("div", { staticClass: "ind-m-myApp-inner" }, [_c("div", { staticClass: "ind-m-myApp-container-top" }, [_c("div", { staticClass: "ind-m-my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "ind-m-edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("van-
|
|
68955
|
-
return _c("van-
|
|
68967
|
+
}), 1)], 1), _c("div", { staticClass: "ind-m-myApp-container" }, [_c("div", { staticClass: "ind-m-myApp-inner" }, [_c("div", { staticClass: "ind-m-myApp-container-top" }, [_c("div", { staticClass: "ind-m-my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "ind-m-edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.paginatedApps, function(page, pageIdx) {
|
|
68968
|
+
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) {
|
|
68969
|
+
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.rmFromMyAppsClick } })], 1);
|
|
68970
|
+
}), 1)], 1)]);
|
|
68956
68971
|
}), 1)], 1)]), _c("div", { staticClass: "customnnnmmmm-tabs-container" }, [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
68957
68972
|
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
68958
68973
|
return _vm.handleTabClick(idx);
|
|
@@ -69159,7 +69174,7 @@ const __vue2_script$2 = {
|
|
|
69159
69174
|
const scrollTop = scrollContainer.scrollTop;
|
|
69160
69175
|
const containerHeight = scrollContainer.clientHeight;
|
|
69161
69176
|
const triggerPosition = containerHeight * 0.3;
|
|
69162
|
-
const sections = Array.from(scrollContainer.querySelectorAll(".menu-section"));
|
|
69177
|
+
const sections = Array.from(scrollContainer.querySelectorAll(".ind-m-menu-section"));
|
|
69163
69178
|
if (sections.length === 0)
|
|
69164
69179
|
return;
|
|
69165
69180
|
let activeIndex = 0;
|
|
@@ -69250,10 +69265,6 @@ const __vue2_script$2 = {
|
|
|
69250
69265
|
}
|
|
69251
69266
|
},
|
|
69252
69267
|
addToMyApps: _.debounce(function(menu) {
|
|
69253
|
-
if (this.tempMyApps.length == this.maxApps) {
|
|
69254
|
-
Toast("\u9996\u9875\u6700\u591A\u6DFB\u52A0" + this.maxApps + "\u4E2A\u5E94\u7528!");
|
|
69255
|
-
return;
|
|
69256
|
-
}
|
|
69257
69268
|
if (this.tempMyApps.find((v) => v.meta.permissionId === menu.meta.permissionId)) {
|
|
69258
69269
|
console.log("\u5E94\u7528\u5DF2\u5B58\u5728");
|
|
69259
69270
|
return;
|
|
@@ -69289,6 +69300,17 @@ const __vue2_script$2 = {
|
|
|
69289
69300
|
saveMyApps() {
|
|
69290
69301
|
this.$store.commit("setMyAppsList", this.my_apps);
|
|
69291
69302
|
}
|
|
69303
|
+
},
|
|
69304
|
+
computed: {
|
|
69305
|
+
paginatedApps() {
|
|
69306
|
+
const apps = this.isEditing ? this.tempMyApps : this.my_apps;
|
|
69307
|
+
const pageSize = 8;
|
|
69308
|
+
const pages2 = [];
|
|
69309
|
+
for (let i = 0; i < apps.length; i += pageSize) {
|
|
69310
|
+
pages2.push(apps.slice(i, i + pageSize));
|
|
69311
|
+
}
|
|
69312
|
+
return pages2;
|
|
69313
|
+
}
|
|
69292
69314
|
}
|
|
69293
69315
|
};
|
|
69294
69316
|
const __cssModules$2 = {};
|