@indfnd/common 1.0.102 → 1.0.104

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.0.104](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.103...v1.0.104) (2025-03-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 移动端表格逻辑处理 ([087a724](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/087a7245281e77664840e9252ea401297b89c14d))
11
+
12
+ ### [1.0.103](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.101...v1.0.103) (2025-03-10)
13
+
14
+
15
+ ### Features
16
+
17
+ * 增加tree组件属性 ([356668e](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/356668e77d1b8500450d9787f66ea37cf17edc7d))
18
+
5
19
  ### [1.0.102](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.101...v1.0.102) (2025-03-07)
6
20
 
7
21
  ### [1.0.101](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.100...v1.0.101) (2025-02-28)
@@ -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.101";
5463
+ const version = "1.0.103";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -55281,8 +55281,6 @@ const __vue2_script$11 = {
55281
55281
  this.$emit("on-select-change", selectedRows);
55282
55282
  },
55283
55283
  selectionChanged() {
55284
- var selectedRows = this.gridApi.getSelectedRows();
55285
- this.$emit("on-select-change", selectedRows);
55286
55284
  },
55287
55285
  resetTableSize(name2) {
55288
55286
  this.tableSize = name2;
@@ -55360,6 +55358,12 @@ const __vue2_script$11 = {
55360
55358
  if (column.headerClass) {
55361
55359
  agColumn.headerClass = column.headerClass;
55362
55360
  }
55361
+ if (column.headerComponent) {
55362
+ agColumn.headerComponent = column.headerComponent;
55363
+ }
55364
+ if (column.headerComponentParams) {
55365
+ agColumn.headerComponentParams = column.headerComponentParams;
55366
+ }
55363
55367
  if (column.filter) {
55364
55368
  agColumn.filter = column.filter;
55365
55369
  }
@@ -55921,6 +55925,37 @@ const __vue2_script$11 = {
55921
55925
  }
55922
55926
  }, 10);
55923
55927
  }, 1),
55928
+ toggleRowUnitIfNeeded: _.debounce(async function toggleRowUnitIfNeeded(oldUnit, newUnit) {
55929
+ setTimeout(() => {
55930
+ let datasTmp = _.cloneDeep(this.tableData);
55931
+ let rowUnitColumns = [];
55932
+ this.columns.forEach((col) => {
55933
+ if (col.isRowSwitchUnit) {
55934
+ rowUnitColumns.push(col);
55935
+ }
55936
+ if (col.children && col.children.length > 0) {
55937
+ col.children.forEach((subCol) => {
55938
+ if (subCol.isRowSwitchUnit) {
55939
+ rowUnitColumns.push(subCol);
55940
+ }
55941
+ });
55942
+ }
55943
+ });
55944
+ datasTmp.forEach((d) => {
55945
+ rowUnitColumns.forEach((dd) => {
55946
+ if (dd.isRowSwitchUnit && oldUnit[dd["rowSwitchUnitType"]] != newUnit[dd["rowSwitchUnitType"]]) {
55947
+ changeCellUnit(
55948
+ oldUnit[dd["rowSwitchUnitType"]],
55949
+ newUnit[dd["rowSwitchUnitType"]],
55950
+ d,
55951
+ dd["key"]
55952
+ );
55953
+ }
55954
+ });
55955
+ });
55956
+ this.$emit("input", datasTmp);
55957
+ }, 10);
55958
+ }, 1),
55924
55959
  getSelection() {
55925
55960
  return this.gridApi.getSelectedRows();
55926
55961
  },