@indfnd/common-mobile 0.0.89 → 0.0.91
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 +21 -0
- package/dist/ind-common-mobile.es.js +69 -55
- package/dist/ind-common-mobile.umd.cjs +28 -28
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.91](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.90...v0.0.91) (2025-09-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 移动端配置新增全屏和局部loading ([2bf93b7](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2bf93b76c894851fc59ce337be5adbadb5fb8781))
|
|
11
|
+
* 移动端配置新增全屏和局部loading ([5a1b47a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/5a1b47a28a9efabca9debd649c7911501ddadadb))
|
|
12
|
+
* 增加获取移动端配置请求 ([b26df70](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b26df70e9cc0de23bc66eafb15dfcedc7c3817af))
|
|
13
|
+
|
|
14
|
+
### [0.0.90](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.89...v0.0.90) (2025-08-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* 山东去掉远程调试 ([9d481ab](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/9d481ab8f636c2ffee2c03677f372d0e20629c4b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* 应用广场优化 ([c155c08](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c155c086abb44ec22d51cbd4826b33290cbaec33))
|
|
25
|
+
|
|
5
26
|
### [0.0.89](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.88...v0.0.89) (2025-08-29)
|
|
6
27
|
|
|
7
28
|
### [0.0.88](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.87...v0.0.88) (2025-08-28)
|
|
@@ -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.90";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -68918,28 +68918,26 @@ var render$2 = function() {
|
|
|
68918
68918
|
_vm.searchValue = $$v;
|
|
68919
68919
|
}, expression: "searchValue" } })], 1), _c("van-popup", { attrs: { "round": true }, model: { value: _vm.show, callback: function($$v) {
|
|
68920
68920
|
_vm.show = $$v;
|
|
68921
|
-
}, expression: "show" } }, [_c("div", {
|
|
68922
|
-
return _c("apps-item", { key: idx, staticClass: "
|
|
68923
|
-
}), 1)]), _c("div", { staticClass: "myApp-container" }, [_c("div", {
|
|
68921
|
+
}, expression: "show" } }, [_c("div", { staticClass: "search-results-container" }, _vm._l(_vm.searchApp, function(item2, idx) {
|
|
68922
|
+
return _c("apps-item", { key: idx, staticClass: "search-result-item", attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
|
|
68923
|
+
}), 1)]), _c("div", { staticClass: "myApp-container" }, [_c("div", { staticClass: "myApp-inner" }, [_c("div", { staticClass: "myApp-container-top" }, [_c("div", { staticClass: "my-apps-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": _vm.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.my_apps.length > 0, expression: "my_apps.length > 0" }], staticClass: "simple-apps-scroll" }, [_c("div", { staticClass: "apps-wrapper" }, _vm._l(_vm.my_apps, function(item2, idx) {
|
|
68924
68924
|
return _c("apps-item", { key: idx, staticClass: "simple-app-card", attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
|
|
68925
68925
|
}), 1)])])]), _c("van-tabs", { staticClass: "custom-tabs", attrs: { "line-height": "3px", "color": "#1989fa", "title-active-color": "#000" }, model: { value: _vm.active, callback: function($$v) {
|
|
68926
68926
|
_vm.active = $$v;
|
|
68927
68927
|
}, expression: "active" } }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
68928
|
-
return _c("van-tab", { key: "tab" + idx, staticClass: "ind-panel",
|
|
68928
|
+
return _c("van-tab", { key: "tab" + idx, staticClass: "ind-panel", scopedSlots: _vm._u([{ key: "title", fn: function() {
|
|
68929
68929
|
return [_c("span", { class: ["tab-title", { "active-tab": _vm.active === idx }] }, [_vm._v(" " + _vm._s(tab.meta.title) + " ")])];
|
|
68930
|
-
}, proxy: true }], null, true) }, [_c("div", { staticClass: "tab-content" }, [_c("
|
|
68931
|
-
_vm.activeKey
|
|
68932
|
-
}, expression: "activeKey" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68933
|
-
return _c("van-sidebar-item", { key: index2, staticStyle: { "font-size": "15px" }, attrs: { "title": item2.meta.title }, on: { "click": function($event) {
|
|
68930
|
+
}, proxy: true }], null, true) }, [_c("div", { staticClass: "tab-content" }, [_c("div", { staticClass: "custom-sidebar" }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68931
|
+
return _c("div", { key: index2, class: ["sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
|
|
68934
68932
|
return _vm.handleSidebarClick(index2);
|
|
68935
|
-
} } });
|
|
68936
|
-
}),
|
|
68933
|
+
} } }, [_c("span", { staticClass: "sidebar-text" }, [_vm._v(_vm._s(item2.meta.title))])]);
|
|
68934
|
+
}), 0), _c("div", { ref: "scrollContainer", refInFor: true, staticClass: "apps-container", staticStyle: { "padding-top": "0px" }, style: { height: _vm.my_apps.length > 0 ? "calc(-135px + 80%)" : "80%" }, on: { "scroll": _vm.handleRightScroll } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
68937
68935
|
return _c("div", { key: index2, staticClass: "menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "divider-container" }, [_c("van-divider", { staticClass: "custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { staticClass: "menu-section-content" }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
68938
|
-
return _c("div", { key: "level3-" + subIndex,
|
|
68936
|
+
return _c("div", { key: "level3-" + subIndex, class: ["app-item-wrapper", { "full-width": subItem.children }] }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "category-header" }, [_c("div", { staticClass: "category-indicator" }), _c("div", { staticClass: "category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children[index2] && _vm.apps_menus[_vm.active].children[index2].children[subIndex] && _vm.apps_menus[_vm.active].children[index2].children[subIndex].children || [], function(menu) {
|
|
68939
68937
|
return _c("van-grid-item", { key: menu.meta.permissionId, staticClass: "menu" }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } })], 1);
|
|
68940
68938
|
}), 1) : _vm._e()], 1);
|
|
68941
68939
|
}), 0)]);
|
|
68942
|
-
}), 0)]
|
|
68940
|
+
}), 0)])]);
|
|
68943
68941
|
}), 1), _c("tabbar")], 1)], 1);
|
|
68944
68942
|
};
|
|
68945
68943
|
var staticRenderFns$2 = [];
|
|
@@ -68971,12 +68969,16 @@ const __vue2_script$2 = {
|
|
|
68971
68969
|
switch (value17) {
|
|
68972
68970
|
case "on": {
|
|
68973
68971
|
this.editButtonName = "\u5B8C\u6210";
|
|
68974
|
-
this.rmFromMyAppsClick = this.rmFromMyApps
|
|
68972
|
+
this.rmFromMyAppsClick = this.rmFromMyApps;
|
|
68973
|
+
this.addToMyAppsClick = this.addToMyApps;
|
|
68974
|
+
this.disableDraggable = false;
|
|
68975
68975
|
break;
|
|
68976
68976
|
}
|
|
68977
68977
|
case "off": {
|
|
68978
68978
|
this.editButtonName = "\u7F16\u8F91";
|
|
68979
|
-
this.rmFromMyAppsClick = this.routeTo
|
|
68979
|
+
this.rmFromMyAppsClick = this.routeTo;
|
|
68980
|
+
this.addToMyAppsClick = this.routeTo;
|
|
68981
|
+
this.saveMyApps();
|
|
68980
68982
|
this.disableDraggable = true;
|
|
68981
68983
|
break;
|
|
68982
68984
|
}
|
|
@@ -68984,7 +68986,8 @@ const __vue2_script$2 = {
|
|
|
68984
68986
|
},
|
|
68985
68987
|
my_apps() {
|
|
68986
68988
|
setTimeout(() => {
|
|
68987
|
-
|
|
68989
|
+
var _a;
|
|
68990
|
+
this.offsetTop = ((_a = this.$refs.myapp) == null ? void 0 : _a.clientHeight) + 48 || 246;
|
|
68988
68991
|
}, 200);
|
|
68989
68992
|
}
|
|
68990
68993
|
},
|
|
@@ -69012,9 +69015,9 @@ const __vue2_script$2 = {
|
|
|
69012
69015
|
this.title = temps[0].meta.title;
|
|
69013
69016
|
this.processState(this.my_apps, temps);
|
|
69014
69017
|
this.appsMenusExtended(this.apps_menus);
|
|
69015
|
-
console.log("apps_menus:::>", this.apps_menus);
|
|
69016
69018
|
setTimeout(() => {
|
|
69017
|
-
|
|
69019
|
+
var _a2;
|
|
69020
|
+
this.offsetTop = ((_a2 = this.$refs.myapp) == null ? void 0 : _a2.clientHeight) + 58 || 256;
|
|
69018
69021
|
}, 100);
|
|
69019
69022
|
},
|
|
69020
69023
|
methods: {
|
|
@@ -69055,6 +69058,7 @@ const __vue2_script$2 = {
|
|
|
69055
69058
|
return result;
|
|
69056
69059
|
},
|
|
69057
69060
|
handleSidebarClick(index2) {
|
|
69061
|
+
this.activeKey = index2;
|
|
69058
69062
|
this.$nextTick(() => {
|
|
69059
69063
|
const scrollContainer = Array.isArray(this.$refs.scrollContainer) ? this.$refs.scrollContainer[0] : this.$refs.scrollContainer;
|
|
69060
69064
|
if (!scrollContainer) {
|
|
@@ -69067,9 +69071,7 @@ const __vue2_script$2 = {
|
|
|
69067
69071
|
console.error("\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20:", targetId);
|
|
69068
69072
|
return;
|
|
69069
69073
|
}
|
|
69070
|
-
const
|
|
69071
|
-
const targetRect = targetElement.getBoundingClientRect();
|
|
69072
|
-
const scrollOffset2 = targetRect.top - containerRect.top + scrollContainer.scrollTop;
|
|
69074
|
+
const scrollOffset2 = targetElement.offsetTop - scrollContainer.offsetTop;
|
|
69073
69075
|
if (typeof scrollContainer.scrollTo === "function") {
|
|
69074
69076
|
scrollContainer.scrollTo({
|
|
69075
69077
|
top: scrollOffset2,
|
|
@@ -69116,16 +69118,7 @@ const __vue2_script$2 = {
|
|
|
69116
69118
|
}
|
|
69117
69119
|
},
|
|
69118
69120
|
toggleEdit() {
|
|
69119
|
-
|
|
69120
|
-
case "on": {
|
|
69121
|
-
this.currentEditStatus = "off";
|
|
69122
|
-
break;
|
|
69123
|
-
}
|
|
69124
|
-
case "off": {
|
|
69125
|
-
this.currentEditStatus = "on";
|
|
69126
|
-
break;
|
|
69127
|
-
}
|
|
69128
|
-
}
|
|
69121
|
+
this.currentEditStatus = this.currentEditStatus === "on" ? "off" : "on";
|
|
69129
69122
|
},
|
|
69130
69123
|
saveMyApps() {
|
|
69131
69124
|
Dialog.confirm({
|
|
@@ -69185,33 +69178,26 @@ const __vue2_script$2 = {
|
|
|
69185
69178
|
Toast("\u9996\u9875\u6700\u591A\u6DFB\u52A0" + this.maxApps + "\u4E2A\u5E94\u7528!");
|
|
69186
69179
|
return;
|
|
69187
69180
|
}
|
|
69188
|
-
if (this.my_apps.
|
|
69189
|
-
|
|
69190
|
-
|
|
69191
|
-
|
|
69192
|
-
|
|
69193
|
-
|
|
69194
|
-
|
|
69195
|
-
console.log("\u4E0D\u5B58\u5728");
|
|
69196
|
-
this.my_apps.push(this.findMenu(this.apps_menus, menu, false));
|
|
69197
|
-
break;
|
|
69198
|
-
}
|
|
69199
|
-
}
|
|
69200
|
-
} else {
|
|
69201
|
-
this.my_apps.push(this.findMenu(this.apps_menus, menu, false));
|
|
69181
|
+
if (this.my_apps.find((v) => v.meta.permissionId === menu.meta.permissionId)) {
|
|
69182
|
+
console.log("\u5E94\u7528\u5DF2\u5B58\u5728");
|
|
69183
|
+
return;
|
|
69184
|
+
}
|
|
69185
|
+
const menuItem = this.findMenu(this.apps_menus, menu, false);
|
|
69186
|
+
if (menuItem) {
|
|
69187
|
+
this.my_apps.push(menuItem);
|
|
69202
69188
|
}
|
|
69203
69189
|
},
|
|
69204
69190
|
rmFromMyApps(menu) {
|
|
69205
|
-
|
|
69206
|
-
|
|
69207
|
-
|
|
69208
|
-
|
|
69209
|
-
|
|
69191
|
+
const index2 = this.my_apps.findIndex(
|
|
69192
|
+
(item2) => item2.meta.permissionId === menu.meta.permissionId
|
|
69193
|
+
);
|
|
69194
|
+
if (index2 !== -1) {
|
|
69195
|
+
this.my_apps.splice(index2, 1);
|
|
69196
|
+
this.findMenu(this.apps_menus, menu, true);
|
|
69210
69197
|
}
|
|
69211
|
-
this.findMenu(this.apps_menus, menu, true);
|
|
69212
69198
|
},
|
|
69213
69199
|
findMenu(list2, menu, flag) {
|
|
69214
|
-
for (
|
|
69200
|
+
for (let i = 0; i < list2.length; i++) {
|
|
69215
69201
|
if (list2[i].children) {
|
|
69216
69202
|
let temp = this.findMenu(list2[i].children, menu, flag);
|
|
69217
69203
|
if (temp)
|
|
@@ -69249,15 +69235,35 @@ var render$1 = function() {
|
|
|
69249
69235
|
var _vm = this;
|
|
69250
69236
|
var _h = _vm.$createElement;
|
|
69251
69237
|
var _c = _vm._self._c || _h;
|
|
69252
|
-
return _c("
|
|
69238
|
+
return _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
|
|
69253
69239
|
$event.stopPropagation();
|
|
69254
|
-
} } }, [_c("div", { staticClass: "ind-loading-
|
|
69240
|
+
} } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.getOssFileUrl(_vm.globalLoading), "alt": "" } }), _c("div", { staticClass: "ind-loading-wrapper-text" }, [_vm._v(" " + _vm._s(_vm.text || "\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...") + " ")])]) : _c("div", { staticClass: "ind-loading-wrapper-local" }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("div", { staticClass: "ind-loading-block-center" }, [_c("img", { attrs: { "src": _vm.getOssFileUrl(_vm.localLoading), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])]);
|
|
69255
69241
|
};
|
|
69256
69242
|
var staticRenderFns$1 = [];
|
|
69257
69243
|
const __vue2_script$1 = {
|
|
69258
69244
|
props: {
|
|
69259
69245
|
loading: Boolean,
|
|
69246
|
+
isFullScreenLoading: {
|
|
69247
|
+
type: Boolean,
|
|
69248
|
+
default: false
|
|
69249
|
+
},
|
|
69260
69250
|
text: String
|
|
69251
|
+
},
|
|
69252
|
+
computed: {
|
|
69253
|
+
globalLoading() {
|
|
69254
|
+
return this.$config.systemDefaultConfig.globalLoading;
|
|
69255
|
+
},
|
|
69256
|
+
localLoading() {
|
|
69257
|
+
return this.$config.systemDefaultConfig.localLoading;
|
|
69258
|
+
}
|
|
69259
|
+
},
|
|
69260
|
+
methods: {
|
|
69261
|
+
getOssFileUrl(fileId) {
|
|
69262
|
+
if (fileId) {
|
|
69263
|
+
return `/user-manage-server/oss/file/get/${fileId}`;
|
|
69264
|
+
}
|
|
69265
|
+
return this.isFullScreenLoading ? "./two.png" : "./loading.png";
|
|
69266
|
+
}
|
|
69261
69267
|
}
|
|
69262
69268
|
};
|
|
69263
69269
|
const __cssModules$1 = {};
|
|
@@ -69376,7 +69382,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
69376
69382
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
69377
69383
|
var configPlugin = {
|
|
69378
69384
|
install(Vue2, { config: appConfig } = {}) {
|
|
69379
|
-
Vue2.prototype.$config = appConfig || config$1;
|
|
69385
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, appConfig || config$1);
|
|
69380
69386
|
}
|
|
69381
69387
|
};
|
|
69382
69388
|
var routerPlugin = {
|
|
@@ -71495,6 +71501,14 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
71495
71501
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
71496
71502
|
});
|
|
71497
71503
|
}
|
|
71504
|
+
axios$3.get(
|
|
71505
|
+
`/user-manage-server/manage/appSetting/qryAppSettingNew?offset=0&limit=20&settingType=11&deviceType=11`
|
|
71506
|
+
).then((data49) => {
|
|
71507
|
+
var _a, _b;
|
|
71508
|
+
let ret = JSON.parse((_b = (_a = data49.data) == null ? void 0 : _a.rows) == null ? void 0 : _b[0].settingInfo);
|
|
71509
|
+
console.log(`\u{1F921}\u{1F61D} ... install ... ret:`, ret);
|
|
71510
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret || {});
|
|
71511
|
+
});
|
|
71498
71512
|
Object.keys(components).forEach((key) => {
|
|
71499
71513
|
Vue2.component(`IndM${key}`, components[key]);
|
|
71500
71514
|
});
|