@indfnd/common 1.1.3 → 1.1.4

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
+ ### [1.1.4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.3...v1.1.4) (2025-09-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * 导出excel问题修复 ([3db6d18](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3db6d18fb9bec497797e60f453c38c1653277150))
11
+ * 移动端配置新增全屏和局部loading ([6e2c8eb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6e2c8ebb3bdff24b53ab9736912ceb8cb794dcfd))
12
+ * 移动端配置新增全屏和局部loading ([4691be4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/4691be46baec5d5ffca3e3f96ca8e97f1439d394))
13
+
5
14
  ### [1.1.3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.2...v1.1.3) (2025-09-04)
6
15
 
7
16
 
@@ -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.2";
5463
+ const version = "1.1.3";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -60893,23 +60893,48 @@ var render$A = function() {
60893
60893
  var _vm = this;
60894
60894
  var _h = _vm.$createElement;
60895
60895
  var _c = _vm._self._c || _h;
60896
- return _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);
60896
+ 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) {
60897
+ $event.stopPropagation();
60898
+ } } }, [_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..."))])])])])])], 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)]);
60897
60899
  };
60898
60900
  var staticRenderFns$A = [];
60899
60901
  const __vue2_script$B = {
60900
60902
  name: "IndLoadingPanel",
60901
60903
  components: { Spin, Icons },
60902
60904
  props: {
60905
+ isFullScreenLoading: {
60906
+ type: Boolean,
60907
+ default: false
60908
+ },
60903
60909
  loading: Boolean,
60904
60910
  theme: { type: String, default: "light" },
60905
60911
  noText: Boolean,
60906
60912
  text: { type: String, default: "\u52A0\u8F7D\u4E2D..." }
60907
60913
  },
60908
60914
  data() {
60915
+ function isPC() {
60916
+ const userAgent = navigator.userAgent;
60917
+ const pcKeywords = ["Windows", "Macintosh", "Linux"];
60918
+ for (const keyword of pcKeywords) {
60919
+ if (userAgent.includes(keyword)) {
60920
+ return true;
60921
+ }
60922
+ }
60923
+ return false;
60924
+ }
60909
60925
  return {
60926
+ isPc: isPC(),
60910
60927
  style: { "z-index": transferIndex }
60911
60928
  };
60912
60929
  },
60930
+ computed: {
60931
+ globalLoading() {
60932
+ return this.$config.systemDefaultConfig.globalLoading;
60933
+ },
60934
+ localLoading() {
60935
+ return this.$config.systemDefaultConfig.localLoading;
60936
+ }
60937
+ },
60913
60938
  watch: {
60914
60939
  loading: {
60915
60940
  immediate: true,
@@ -60919,6 +60944,14 @@ const __vue2_script$B = {
60919
60944
  }
60920
60945
  }
60921
60946
  }
60947
+ },
60948
+ methods: {
60949
+ getOssFileUrl(fileId) {
60950
+ if (fileId) {
60951
+ return `/user-manage-server/oss/file/get/${fileId}`;
60952
+ }
60953
+ return this.isFullScreenLoading ? "./two.png" : "./loading.png";
60954
+ }
60922
60955
  }
60923
60956
  };
60924
60957
  const __cssModules$B = {};
@@ -72334,6 +72367,14 @@ const install = function(Vue2, opts = { theme: "" }) {
72334
72367
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data);
72335
72368
  });
72336
72369
  }
72370
+ axios.get(
72371
+ `/user-manage-server/manage/appSetting/qryAppSettingNew?offset=0&limit=20&settingType=11&deviceType=11`
72372
+ ).then((data) => {
72373
+ var _a, _b;
72374
+ let ret = JSON.parse((_b = (_a = data.data) == null ? void 0 : _a.rows) == null ? void 0 : _b[0].settingInfo);
72375
+ console.log(`\u{1F921}\u{1F61D} ... install ... ret:`, ret);
72376
+ Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret || {});
72377
+ });
72337
72378
  Object.keys(components).forEach((key) => {
72338
72379
  Vue2.component(`Ind${key}`, components[key]);
72339
72380
  });