@indfnd/common 1.1.39 → 1.1.40

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,18 @@
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.40](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.39...v1.1.40) (2025-12-31)
6
+
7
+
8
+ ### Features
9
+
10
+ * 修复预览Excel的按钮 ([db2b7d6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/db2b7d6c4de06340098e97fc1e1ffec5569d3538))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **ag-table:** 修复数值格式化处理问题 ([171608b](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/171608b5a086a7ce60e36a7fd3b4ec22c37902cd))
16
+
5
17
  ### [1.1.39](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.38...v1.1.39) (2025-12-26)
6
18
 
7
19
 
@@ -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.38";
5463
+ const version = "1.1.39";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -51922,7 +51922,7 @@ const __vue2_script$1i = {
51922
51922
  let renderVal = value;
51923
51923
  const scale = scaleFn();
51924
51924
  if (scale === 0) {
51925
- renderVal = value ? parseInt(value) : value;
51925
+ renderVal = value ? Math.round(parseFloat(value)) : value;
51926
51926
  } else if (scale) {
51927
51927
  let cellV = _.round(parseFloat(value), 6);
51928
51928
  if (!isNaN(cellV)) {
@@ -67482,9 +67482,9 @@ var render$4 = function() {
67482
67482
  return _vm.removeItem(item2);
67483
67483
  } } }, [_vm._v(" \u5220\u9664 ")]), _c("div", { staticClass: "preview", on: { "click": function($event) {
67484
67484
  return _vm.openPreview(item2);
67485
- } } }, [_vm._v("\u5728\u7EBF\u9884\u89C8")]), _c("div", { staticClass: "download", on: { "click": function($event) {
67485
+ } } }, [_vm._v("\u5728\u7EBF\u9884\u89C8")]), _vm.showDownLoad ? _c("div", { staticClass: "download", on: { "click": function($event) {
67486
67486
  return _vm.download(item2);
67487
- } } }, [_c("Icon", { attrs: { "type": "md-download" } }), _vm._v("\u4E0B\u8F7D")], 1)]);
67487
+ } } }, [_c("Icon", { attrs: { "type": "md-download" } }), _vm._v("\u4E0B\u8F7D ")], 1) : _vm._e()]);
67488
67488
  })] : _vm._e()], 2), _c("PreviewModal", { attrs: { "fileId": _vm.selectedFileId, "id": "office" }, model: { value: _vm.showPreview, callback: function($$v) {
67489
67489
  _vm.showPreview = $$v;
67490
67490
  }, expression: "showPreview" } })], 1);
@@ -67496,6 +67496,7 @@ const __vue2_script$4 = {
67496
67496
  PreviewModal
67497
67497
  },
67498
67498
  props: {
67499
+ showDownLoad: { type: Boolean, default: true },
67499
67500
  headers: {
67500
67501
  type: Object,
67501
67502
  default: () => ({ token: getToken() })
@@ -67669,6 +67670,7 @@ const __vue2_script$4 = {
67669
67670
  } else {
67670
67671
  window.open(getOssFileUrl(item2.fileId), "_self");
67671
67672
  }
67673
+ this.$emit("download", item2);
67672
67674
  }
67673
67675
  }
67674
67676
  };