@indfnd/common 1.1.34 → 1.1.36

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
+ ### [1.1.36](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.35...v1.1.36) (2025-12-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * 导出excel支持renderDataFn ([03cf79c](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/03cf79c34b2ee7aeb85cb5760df264317036ec49))
11
+
12
+ ### [1.1.35](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.34...v1.1.35) (2025-12-15)
13
+
14
+
15
+ ### Features
16
+
17
+ * 预览 ([24df5a7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/24df5a7f5a234bea0d4456b3efa6c46857403561))
18
+
5
19
  ### [1.1.34](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.33...v1.1.34) (2025-12-15)
6
20
 
7
21
 
@@ -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.33";
5463
+ const version = "1.1.35";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -50875,6 +50875,10 @@ const __vue2_script$1m = {
50875
50875
  type: Function,
50876
50876
  default: null
50877
50877
  },
50878
+ renderDataFn: {
50879
+ type: Function,
50880
+ default: null
50881
+ },
50878
50882
  data: {
50879
50883
  type: Array,
50880
50884
  default() {
@@ -51051,6 +51055,9 @@ const __vue2_script$1m = {
51051
51055
  getDataFromServer(params) {
51052
51056
  this.dataApi(params).then((result) => {
51053
51057
  let resultData = _.cloneDeep(result.data.rows || result.data.records || result.data || []);
51058
+ if (this.renderDataFn) {
51059
+ resultData = this.renderDataFn(resultData);
51060
+ }
51054
51061
  if (this.showSummary) {
51055
51062
  let sum = this.summaryData(resultData);
51056
51063
  resultData.push(sum);
@@ -51069,6 +51076,9 @@ const __vue2_script$1m = {
51069
51076
  getDataFromServerPreview(params) {
51070
51077
  this.dataApi(params).then((result) => {
51071
51078
  let resultData = _.cloneDeep(result.data.rows || result.data.records || result.data || []);
51079
+ if (this.renderDataFn) {
51080
+ resultData = this.renderDataFn(resultData);
51081
+ }
51072
51082
  if (this.showSummary) {
51073
51083
  let sum = this.summaryData(resultData);
51074
51084
  resultData.push(sum);
@@ -53172,7 +53182,7 @@ var render$14 = function() {
53172
53182
  return _vm.$emit("revertColumnRow");
53173
53183
  } } }, [_vm._v(" \u8F6C\u7F6E ")]) : _vm._e(), !_vm.isIndexManageTable && _vm.$config.indexManage ? _c("IndexManage", { attrs: { "tableRef": _vm.tableRef, "funId": (_vm.funId || "") + "-" + _vm.$route.meta.permissionId }, on: { "resetColumns": _vm.resetColumns } }) : _vm._e(), _c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": function($event) {
53174
53184
  return _vm.tableSettingToggle("3");
53175
- } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage }, on: { "doExport": function($event) {
53185
+ } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "renderDataFn": _vm.renderDataFn, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage }, on: { "doExport": function($event) {
53176
53186
  _vm.optionDropdownVisible = false;
53177
53187
  }, "doPreview": function($event) {
53178
53188
  _vm.optionDropdownVisible = false;
@@ -61181,7 +61191,7 @@ var render$z = function() {
61181
61191
  _vm.visible = true;
61182
61192
  }, "on-click": function($event) {
61183
61193
  _vm.visible = true;
61184
- } } }), _c("Modal", { staticClass: "ind-modal", attrs: { "value": _vm.visible, "title": _vm.selectTitle, "footerHide": _vm.footerHide }, on: { "on-visible-change": _vm.visibleChange, "on-ok": _vm.doOk, "on-cancel": function($event) {
61194
+ } } }), _c("IndModal", { staticClass: "ind-modal", attrs: { "value": _vm.visible, "title": _vm.selectTitle, "footerHide": _vm.footerHide }, on: { "on-visible-change": _vm.visibleChange, "on-ok": _vm.doOk, "on-cancel": function($event) {
61185
61195
  _vm.visible = false;
61186
61196
  } } }, [_c("div", { ref: "treeWrapper", staticClass: "tree-select-wrapper" }, [_c("Input", { staticClass: "tree-select-input", attrs: { "placeholder": "\u591A\u4E2A\u7528\u7A7A\u683C\u5206\u9694,\u56DE\u8F66\u952E\u641C\u7D22", "clearable": "", "search": "" }, on: { "on-clear": _vm.clearHighlightNodes, "on-change": _vm.onSearchChange, "on-search": _vm.search }, model: { value: _vm.searchValue, callback: function($$v) {
61187
61197
  _vm.searchValue = typeof $$v === "string" ? $$v.trim() : $$v;
@@ -61357,7 +61367,7 @@ var __component__$A = /* @__PURE__ */ normalizeComponent(
61357
61367
  staticRenderFns$z,
61358
61368
  false,
61359
61369
  __vue2_injectStyles$A,
61360
- "2309bc89",
61370
+ "11928619",
61361
61371
  null,
61362
61372
  null
61363
61373
  );