@indfnd/common 1.1.6 → 1.1.7

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,16 @@
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
+ ### [1.1.7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.6...v1.1.7) (2025-09-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改 ([da30870](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/da30870cd5c0de9210c5a542d79c9d2c8298c514))
11
+ * 修改 ([c4ba7e2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/c4ba7e29513dc2230c0eaa874236b3be007827d0))
12
+ * 修改 ([e63764d](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/e63764dd327fe77f8efbae99d5580405d8d34a6d))
13
+ * 修改 ([58f277f](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/58f277fc7a1cf574a88d878fe865f92618b9a58e))
14
+
5
15
  ### [1.1.6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.5...v1.1.6) (2025-09-08)
6
16
 
7
17
 
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
5460
5460
  })(lodash, lodash.exports);
5461
5461
  var _ = lodash.exports;
5462
5462
  const name$1 = "@indfnd/common";
5463
- const version = "1.1.5";
5463
+ const version = "1.1.6";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -60897,7 +60897,7 @@ var render$A = function() {
60897
60897
  var _c = _vm._self._c || _h;
60898
60898
  return _c("div", [_vm.isPc ? _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _c("div", { staticClass: "custom-overlay", class: { show: _vm.loading }, on: { "click": function($event) {
60899
60899
  $event.stopPropagation();
60900
- } } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.getOssFileUrl(_vm.$config.systemDefaultConfig.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.$config.systemDefaultConfig.localLoading || ""), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])])], 2) : _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _vm.loading ? _c("Spin", { class: ["ind-loading-spin", "ind-loading-spin--" + _vm.theme], style: _vm.style, attrs: { "fix": "" } }, [_c("Icons", { staticClass: "ind-loading-spin-icon", attrs: { "type": "ios-loading", "size": "18" } }), !_vm.noText ? _c("div", [_vm._v(_vm._s(_vm.text))]) : _vm._e()], 1) : _vm._e()], 2)]);
60900
+ } } }, [_vm.isFullScreenLoading ? _c("div", { staticClass: "ind-loading-wrapper-global" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%" }, attrs: { "src": _vm.loadingImageUrl(true), "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.loadingImageUrl(false), "alt": "" } }), _c("div", { staticClass: "ind-loading-block-text" }, [_vm._v(_vm._s(_vm.text || "\u52A0\u8F7D\u4E2D..."))])])])])])], 2) : _c("div", { staticClass: "ind-loading-panel" }, [_vm._t("default"), _vm.loading ? _c("Spin", { class: ["ind-loading-spin", "ind-loading-spin--" + _vm.theme], style: _vm.style, attrs: { "fix": "" } }, [_c("Icons", { staticClass: "ind-loading-spin-icon", attrs: { "type": "ios-loading", "size": "18" } }), !_vm.noText ? _c("div", [_vm._v(_vm._s(_vm.text))]) : _vm._e()], 1) : _vm._e()], 2)]);
60901
60901
  };
60902
60902
  var staticRenderFns$A = [];
60903
60903
  const __vue2_script$B = {
@@ -60942,13 +60942,20 @@ const __vue2_script$B = {
60942
60942
  }
60943
60943
  },
60944
60944
  methods: {
60945
- getOssFileUrl(fileId) {
60946
- console.log(`\u{1F921}\u{1F61D} ... getOssFileUrl ... fileId:`, fileId, this.$config);
60947
- if (fileId !== "") {
60948
- console.log("ddddddddddddddddddddddddd");
60945
+ loadingImageUrl(isGlobal) {
60946
+ const configPath = isGlobal ? "systemDefaultConfig.globalLoading" : "systemDefaultConfig.localLoading";
60947
+ const fileId = this.getSafeConfigValue(configPath);
60948
+ if (fileId) {
60949
60949
  return `/user-manage-server/oss/file/get/${fileId}`;
60950
60950
  }
60951
- return this.isFullScreenLoading ? this.defaultGlobal : this.defaultLocal;
60951
+ return isGlobal ? this.defaultGlobal : this.defaultLocal;
60952
+ },
60953
+ getSafeConfigValue(path) {
60954
+ if (!this.$config)
60955
+ return void 0;
60956
+ return path.split(".").reduce((obj, key) => {
60957
+ return obj && obj[key] !== void 0 ? obj[key] : void 0;
60958
+ }, this.$config);
60952
60959
  }
60953
60960
  }
60954
60961
  };
@@ -72370,7 +72377,6 @@ const install = function(Vue2, opts = { theme: "" }) {
72370
72377
  ).then((data) => {
72371
72378
  var _a, _b;
72372
72379
  let ret = JSON.parse((_b = (_a = data.data) == null ? void 0 : _a.rows) == null ? void 0 : _b[0].settingInfo);
72373
- console.log(`\u{1F921}\u{1F61D} ... install ... ret:`, ret);
72374
72380
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret || {});
72375
72381
  });
72376
72382
  Object.keys(components).forEach((key) => {