@indfnd/common 1.1.38 → 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,30 @@
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
+
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)
18
+
19
+
20
+ ### Features
21
+
22
+ * treeselect改为非懒加载 ([e7ee7da](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/e7ee7da6a512306733ed72f10fd5a9c696272479))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **n-table:** 修复数值格式化处理问题 ([2222462](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2222462deadb96f0a25a9902bc60bf738a19ce5a))
28
+
5
29
  ### [1.1.38](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.37...v1.1.38) (2025-12-25)
6
30
 
7
31
  ### [1.1.37](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.36...v1.1.37) (2025-12-25)
@@ -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.37";
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)) {
@@ -52344,7 +52344,7 @@ const __vue2_script$1b = {
52344
52344
  if (dateFormat) {
52345
52345
  renderVal = formatDate$1(value);
52346
52346
  } else if (scale === 0) {
52347
- renderVal = value ? parseInt(value) : value;
52347
+ renderVal = value ? Math.round(parseFloat(value)) : value;
52348
52348
  } else if (scale) {
52349
52349
  let cellV = parseFloat(value);
52350
52350
  if (!isNaN(cellV)) {
@@ -53844,14 +53844,19 @@ const __vue2_script$15 = {
53844
53844
  },
53845
53845
  methods: {
53846
53846
  getContextMenuItems: function() {
53847
+ var _a;
53848
+ let exportEnumItems = [];
53849
+ if (!((_a = this.$config) == null ? void 0 : _a.hidePreviewExport)) {
53850
+ exportEnumItems.push({
53851
+ name: "\u9884\u89C8Excel",
53852
+ action: () => {
53853
+ this.$refs.exportData.previewCurrentPage();
53854
+ }
53855
+ });
53856
+ }
53847
53857
  if (this.rowSelection == "multiple") {
53848
53858
  return [
53849
- {
53850
- name: "\u9884\u89C8Excel",
53851
- action: () => {
53852
- this.$refs.exportData.previewCurrentPage();
53853
- }
53854
- },
53859
+ ...exportEnumItems,
53855
53860
  {
53856
53861
  name: "\u5BFC\u51FA\u6570\u636E\u5230Excel",
53857
53862
  action: () => {
@@ -53884,16 +53889,17 @@ const __vue2_script$15 = {
53884
53889
  ];
53885
53890
  } else {
53886
53891
  return [
53892
+ ...exportEnumItems,
53887
53893
  {
53888
- name: "\u9884\u89C8Excel",
53894
+ name: "\u5BFC\u51FA\u6570\u636E\u5230Excel",
53889
53895
  action: () => {
53890
- this.$refs.exportData.previewCurrentPage();
53896
+ this.$refs.exportData.exportCurrentPage();
53891
53897
  }
53892
53898
  },
53893
53899
  {
53894
- name: "\u5BFC\u51FA\u6570\u636E\u5230Excel",
53900
+ name: `${this.fullSreen ? "\u53D6\u6D88\u5168\u5C4F" : "\u5168\u5C4F"}`,
53895
53901
  action: () => {
53896
- this.$refs.exportData.exportCurrentPage();
53902
+ this.toggleFullScreen();
53897
53903
  }
53898
53904
  }
53899
53905
  ];
@@ -67476,9 +67482,9 @@ var render$4 = function() {
67476
67482
  return _vm.removeItem(item2);
67477
67483
  } } }, [_vm._v(" \u5220\u9664 ")]), _c("div", { staticClass: "preview", on: { "click": function($event) {
67478
67484
  return _vm.openPreview(item2);
67479
- } } }, [_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) {
67480
67486
  return _vm.download(item2);
67481
- } } }, [_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()]);
67482
67488
  })] : _vm._e()], 2), _c("PreviewModal", { attrs: { "fileId": _vm.selectedFileId, "id": "office" }, model: { value: _vm.showPreview, callback: function($$v) {
67483
67489
  _vm.showPreview = $$v;
67484
67490
  }, expression: "showPreview" } })], 1);
@@ -67490,6 +67496,7 @@ const __vue2_script$4 = {
67490
67496
  PreviewModal
67491
67497
  },
67492
67498
  props: {
67499
+ showDownLoad: { type: Boolean, default: true },
67493
67500
  headers: {
67494
67501
  type: Object,
67495
67502
  default: () => ({ token: getToken() })
@@ -67663,6 +67670,7 @@ const __vue2_script$4 = {
67663
67670
  } else {
67664
67671
  window.open(getOssFileUrl(item2.fileId), "_self");
67665
67672
  }
67673
+ this.$emit("download", item2);
67666
67674
  }
67667
67675
  }
67668
67676
  };