@indfnd/common-mobile 0.0.90 → 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 CHANGED
@@ -2,6 +2,15 @@
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
+
5
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)
6
15
 
7
16
 
@@ -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.89";
5
+ const version$2 = "0.0.90";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -68931,7 +68931,7 @@ var render$2 = function() {
68931
68931
  return _c("div", { key: index2, class: ["sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
68932
68932
  return _vm.handleSidebarClick(index2);
68933
68933
  } } }, [_c("span", { staticClass: "sidebar-text" }, [_vm._v(_vm._s(item2.meta.title))])]);
68934
- }), 0), _c("div", { ref: "scrollContainer", refInFor: true, staticClass: "apps-container", 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) {
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) {
68935
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) {
68936
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) {
68937
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);
@@ -69235,15 +69235,35 @@ var render$1 = function() {
69235
69235
  var _vm = this;
69236
69236
  var _h = _vm.$createElement;
69237
69237
  var _c = _vm._self._c || _h;
69238
- return _c("van-overlay", { attrs: { "show": _vm.loading } }, [_c("div", { staticClass: "ind-loading-wrapper", on: { "click": function($event) {
69238
+ return _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
69239
69239
  $event.stopPropagation();
69240
- } } }, [_c("div", { staticClass: "ind-loading-block ind-vcenter" }, [_c("van-loading", { attrs: { "size": "24px", "vertical": "" } }, [_vm._v(" " + _vm._s(_vm.text || "\u52A0\u8F7D\u4E2D...") + " ")])], 1)])]);
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..."))])])])])]);
69241
69241
  };
69242
69242
  var staticRenderFns$1 = [];
69243
69243
  const __vue2_script$1 = {
69244
69244
  props: {
69245
69245
  loading: Boolean,
69246
+ isFullScreenLoading: {
69247
+ type: Boolean,
69248
+ default: false
69249
+ },
69246
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
+ }
69247
69267
  }
69248
69268
  };
69249
69269
  const __cssModules$1 = {};
@@ -69362,7 +69382,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
69362
69382
  }, Symbol.toStringTag, { value: "Module" }));
69363
69383
  var configPlugin = {
69364
69384
  install(Vue2, { config: appConfig } = {}) {
69365
- Vue2.prototype.$config = appConfig || config$1;
69385
+ Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, appConfig || config$1);
69366
69386
  }
69367
69387
  };
69368
69388
  var routerPlugin = {
@@ -71481,6 +71501,14 @@ const install = function(Vue2, opts = { theme: "" }) {
71481
71501
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
71482
71502
  });
71483
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
+ });
71484
71512
  Object.keys(components).forEach((key) => {
71485
71513
  Vue2.component(`IndM${key}`, components[key]);
71486
71514
  });