@indfnd/common 1.0.101 → 1.0.102

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.102](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.101...v1.0.102) (2025-03-07)
6
+
5
7
  ### [1.0.101](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.100...v1.0.101) (2025-02-28)
6
8
 
7
9
  ### [1.0.100](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.99...v1.0.100) (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.100";
5463
+ const version = "1.0.101";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -55360,12 +55360,6 @@ 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
- }
55369
55363
  if (column.filter) {
55370
55364
  agColumn.filter = column.filter;
55371
55365
  }
@@ -55927,37 +55921,6 @@ const __vue2_script$11 = {
55927
55921
  }
55928
55922
  }, 10);
55929
55923
  }, 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),
55961
55924
  getSelection() {
55962
55925
  return this.gridApi.getSelectedRows();
55963
55926
  },
@@ -56484,6 +56447,7 @@ const __vue2_script$Z = {
56484
56447
  checkStrictly: Boolean,
56485
56448
  expandNode: Boolean,
56486
56449
  noToggleExpandOnSelect: Boolean,
56450
+ selectBootNode: Boolean,
56487
56451
  selectFirstLeaf: Boolean,
56488
56452
  hideFirstLevel: Boolean,
56489
56453
  foldFirstLevel: Boolean,
@@ -56774,6 +56738,22 @@ const __vue2_script$Z = {
56774
56738
  }
56775
56739
  this.backupTreeData = _.cloneDeep(this.treeData);
56776
56740
  },
56741
+ _selectBootNode() {
56742
+ let exist = false;
56743
+ deepEach$2(this.treeData, (node) => {
56744
+ if (exist) {
56745
+ return true;
56746
+ }
56747
+ if (this.showCheckbox) {
56748
+ node.checked = true;
56749
+ } else {
56750
+ node.selected = true;
56751
+ exist = true;
56752
+ return true;
56753
+ }
56754
+ });
56755
+ this.backupTreeData = _.cloneDeep(this.treeData);
56756
+ },
56777
56757
  processAncestorNodesExpandStatus() {
56778
56758
  if (!this.showCheckbox) {
56779
56759
  deepEach$2(this.treeData, (node) => {
@@ -56832,8 +56812,12 @@ const __vue2_script$Z = {
56832
56812
  if (!this.foldFirstLevel && this.firstLeafByStatus.length < 1 && this.treeData.length) {
56833
56813
  this.expandFirstLevel();
56834
56814
  }
56835
- if (this.selectFirstLeaf) {
56836
- this._selectFirstLeaf();
56815
+ if (this.selectFirstLeaf || this.selectBootNode) {
56816
+ if (this.selectFirstLeaf) {
56817
+ this._selectFirstLeaf();
56818
+ } else {
56819
+ this._selectBootNode();
56820
+ }
56837
56821
  this.processAncestorNodesExpandStatus();
56838
56822
  this.$nextTick(() => {
56839
56823
  if (this.showCheckbox) {