@indfnd/common 0.1.42 → 0.1.44

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,20 @@
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.1.44](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.43...v0.1.44) (2024-04-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * message error改成3秒 ([91edc70](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/91edc70a09c6821dbda16a71143a6607a9516645))
11
+
12
+ ### [0.1.43](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.42...v0.1.43) (2024-04-18)
13
+
14
+
15
+ ### Features
16
+
17
+ * 指标管理问题修复 ([d063746](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/d06374615149edca4d14feb4a042650f16eb4512))
18
+
5
19
  ### [0.1.42](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.41...v0.1.42) (2024-04-17)
6
20
 
7
21
 
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
2
2
  import { isNil, formatDate as formatDate$1, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.41";
5
+ const version = "0.1.43";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -50486,6 +50486,9 @@ const __vue2_script$16 = {
50486
50486
  dd.checked = !dd.hide;
50487
50487
  }
50488
50488
  dd.pinned = dd.fixed || dd.pinned || "none";
50489
+ if (!dd.width && dd.minWidth) {
50490
+ dd.width = dd.minWidth;
50491
+ }
50489
50492
  });
50490
50493
  cloneData.columnList = columns;
50491
50494
  this.curIndex = cloneData;
@@ -52424,6 +52427,7 @@ const __vue2_script$X = {
52424
52427
  }
52425
52428
  },
52426
52429
  async created() {
52430
+ var _a;
52427
52431
  this.tableRef = this;
52428
52432
  this.unitType = this.defaultTableUnitType;
52429
52433
  this.cloneColumns = this.tableColumnsInner(_.cloneDeep(this.columns) || []);
@@ -52439,9 +52443,9 @@ const __vue2_script$X = {
52439
52443
  let switchZeroCol = _.find(this.flatColumns, (d) => {
52440
52444
  return !!d.isSwitchZero;
52441
52445
  });
52442
- let switchZeroTitle = _.find(this.flatColumns, (d) => {
52446
+ let switchZeroTitle = ((_a = _.find(this.flatColumns, (d) => {
52443
52447
  return !!d.isSwitchZero;
52444
- }).isSwitchZero || "\u662F\u5426\u5C55\u793A\u8F93\u5165\u91CF\u4E3A\u96F6\u7684\u6570\u636E";
52448
+ })) == null ? void 0 : _a.isSwitchZero) || "\u662F\u5426\u5C55\u793A\u8F93\u5165\u91CF\u4E3A\u96F6\u7684\u6570\u636E";
52445
52449
  this.switchZeroTitle = switchZeroTitle;
52446
52450
  this.switchZeroCol = switchZeroCol.field || switchZeroCol.key;
52447
52451
  this.renderSumRow();
@@ -52549,7 +52553,12 @@ const __vue2_script$X = {
52549
52553
  delete srcColumn.fixed;
52550
52554
  }
52551
52555
  if (d.width) {
52552
- srcColumn.width = d.width;
52556
+ if (srcColumn.width) {
52557
+ srcColumn.width = d.width;
52558
+ }
52559
+ if (srcColumn.minWidth) {
52560
+ srcColumn.minWidth = d.width;
52561
+ }
52553
52562
  }
52554
52563
  });
52555
52564
  this.columnsHander(this.columns);
@@ -57199,7 +57208,7 @@ var render$x = function() {
57199
57208
  } }, model: { value: _vm.show, callback: function($$v) {
57200
57209
  _vm.show = $$v;
57201
57210
  }, expression: "show" } }, [_vm.menuInfo.menuDesc ? [_c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
57202
- return _c("div", { key: "index" + idx, staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName) + "\uFF1A")]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
57211
+ return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
57203
57212
  })], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
57204
57213
  };
57205
57214
  var staticRenderFns$x = [];
@@ -64316,6 +64325,42 @@ const install = function(Vue2, opts = { theme: "" }) {
64316
64325
  Vue2.directive(key, directives[key]);
64317
64326
  });
64318
64327
  Vue2.prototype.$Modal = Modal;
64328
+ let old$MessageWarn = Vue2.prototype.$Message.warning;
64329
+ Vue2.prototype.$Message.warning = function(config2) {
64330
+ if (typeof config2 == "string") {
64331
+ old$MessageWarn.apply(this, [
64332
+ {
64333
+ content: config2,
64334
+ duration: 3
64335
+ }
64336
+ ]);
64337
+ } else {
64338
+ old$MessageWarn.apply(this, [
64339
+ {
64340
+ ...config2,
64341
+ duration: 3
64342
+ }
64343
+ ]);
64344
+ }
64345
+ };
64346
+ let old$MessageError = Vue2.prototype.$Message.error;
64347
+ Vue2.prototype.$Message.error = function(config2) {
64348
+ if (typeof config2 == "string") {
64349
+ old$MessageError.apply(this, [
64350
+ {
64351
+ content: config2,
64352
+ duration: 3
64353
+ }
64354
+ ]);
64355
+ } else {
64356
+ old$MessageError.apply(this, [
64357
+ {
64358
+ ...config2,
64359
+ duration: 3
64360
+ }
64361
+ ]);
64362
+ }
64363
+ };
64319
64364
  Vue2.prototype.$EventBus = EventBus;
64320
64365
  };
64321
64366
  if (typeof window !== "undefined" && window.Vue) {