@indfnd/common 1.0.99 → 1.0.100

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,8 @@
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.0.100](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.99...v1.0.100) (2025-02-28)
6
+
5
7
  ### [1.0.99](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.98...v1.0.99) (2025-02-21)
6
8
 
7
9
 
@@ -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.0.98";
5463
+ const version = "1.0.99";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -55360,6 +55360,12 @@ const __vue2_script$11 = {
55360
55360
  if (column.headerClass) {
55361
55361
  agColumn.headerClass = column.headerClass;
55362
55362
  }
55363
+ if (column.headerComponent) {
55364
+ agColumn.headerComponent = column.headerComponent;
55365
+ }
55366
+ if (column.headerComponentParams) {
55367
+ agColumn.headerComponentParams = column.headerComponentParams;
55368
+ }
55363
55369
  if (column.filter) {
55364
55370
  agColumn.filter = column.filter;
55365
55371
  }
@@ -55921,6 +55927,37 @@ const __vue2_script$11 = {
55921
55927
  }
55922
55928
  }, 10);
55923
55929
  }, 1),
55930
+ toggleRowUnitIfNeeded: _.debounce(async function toggleRowUnitIfNeeded(oldUnit, newUnit) {
55931
+ setTimeout(() => {
55932
+ let datasTmp = _.cloneDeep(this.tableData);
55933
+ let rowUnitColumns = [];
55934
+ this.columns.forEach((col) => {
55935
+ if (col.isRowSwitchUnit) {
55936
+ rowUnitColumns.push(col);
55937
+ }
55938
+ if (col.children && col.children.length > 0) {
55939
+ col.children.forEach((subCol) => {
55940
+ if (subCol.isRowSwitchUnit) {
55941
+ rowUnitColumns.push(subCol);
55942
+ }
55943
+ });
55944
+ }
55945
+ });
55946
+ datasTmp.forEach((d) => {
55947
+ rowUnitColumns.forEach((dd) => {
55948
+ if (dd.isRowSwitchUnit && oldUnit[dd["rowSwitchUnitType"]] != newUnit[dd["rowSwitchUnitType"]]) {
55949
+ changeCellUnit(
55950
+ oldUnit[dd["rowSwitchUnitType"]],
55951
+ newUnit[dd["rowSwitchUnitType"]],
55952
+ d,
55953
+ dd["key"]
55954
+ );
55955
+ }
55956
+ });
55957
+ });
55958
+ this.$emit("input", datasTmp);
55959
+ }, 10);
55960
+ }, 1),
55924
55961
  getSelection() {
55925
55962
  return this.gridApi.getSelectedRows();
55926
55963
  },