@indfnd/common 1.1.39 → 1.1.41

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,25 @@
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.41](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.40...v1.1.41) (2026-01-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * 附件增加控制是否显示下载的属性,增加download事件 ([10a41dd](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/10a41ddfd14d7a172bd061537a89710bf4b5565a))
11
+
12
+ ### [1.1.40](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.39...v1.1.40) (2025-12-31)
13
+
14
+
15
+ ### Features
16
+
17
+ * 修复预览Excel的按钮 ([db2b7d6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/db2b7d6c4de06340098e97fc1e1ffec5569d3538))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ag-table:** 修复数值格式化处理问题 ([171608b](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/171608b5a086a7ce60e36a7fd3b4ec22c37902cd))
23
+
5
24
  ### [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
25
 
7
26
 
@@ -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.40";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -49625,6 +49625,7 @@ var FormImpl = {
49625
49625
  noTriggerInDefault: true
49626
49626
  },
49627
49627
  on: {
49628
+ ...d.listeners || {},
49628
49629
  input: (val) => {
49629
49630
  this.form[d.formKey] = val;
49630
49631
  this.$emit("input", this.form);
@@ -51922,7 +51923,7 @@ const __vue2_script$1i = {
51922
51923
  let renderVal = value;
51923
51924
  const scale = scaleFn();
51924
51925
  if (scale === 0) {
51925
- renderVal = value ? parseInt(value) : value;
51926
+ renderVal = value ? Math.round(parseFloat(value)) : value;
51926
51927
  } else if (scale) {
51927
51928
  let cellV = _.round(parseFloat(value), 6);
51928
51929
  if (!isNaN(cellV)) {
@@ -67482,9 +67483,9 @@ var render$4 = function() {
67482
67483
  return _vm.removeItem(item2);
67483
67484
  } } }, [_vm._v(" \u5220\u9664 ")]), _c("div", { staticClass: "preview", on: { "click": function($event) {
67484
67485
  return _vm.openPreview(item2);
67485
- } } }, [_vm._v("\u5728\u7EBF\u9884\u89C8")]), _c("div", { staticClass: "download", on: { "click": function($event) {
67486
+ } } }, [_vm._v("\u5728\u7EBF\u9884\u89C8")]), _vm.showDownLoad ? _c("div", { staticClass: "download", on: { "click": function($event) {
67486
67487
  return _vm.download(item2);
67487
- } } }, [_c("Icon", { attrs: { "type": "md-download" } }), _vm._v("\u4E0B\u8F7D")], 1)]);
67488
+ } } }, [_c("Icon", { attrs: { "type": "md-download" } }), _vm._v("\u4E0B\u8F7D ")], 1) : _vm._e()]);
67488
67489
  })] : _vm._e()], 2), _c("PreviewModal", { attrs: { "fileId": _vm.selectedFileId, "id": "office" }, model: { value: _vm.showPreview, callback: function($$v) {
67489
67490
  _vm.showPreview = $$v;
67490
67491
  }, expression: "showPreview" } })], 1);
@@ -67496,6 +67497,7 @@ const __vue2_script$4 = {
67496
67497
  PreviewModal
67497
67498
  },
67498
67499
  props: {
67500
+ showDownLoad: { type: Boolean, default: true },
67499
67501
  headers: {
67500
67502
  type: Object,
67501
67503
  default: () => ({ token: getToken() })
@@ -67669,6 +67671,7 @@ const __vue2_script$4 = {
67669
67671
  } else {
67670
67672
  window.open(getOssFileUrl(item2.fileId), "_self");
67671
67673
  }
67674
+ this.$emit("download", item2);
67672
67675
  }
67673
67676
  }
67674
67677
  };