vxe-table 3.17.0-beta.3 → 3.17.0-beta.5

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.
@@ -1511,20 +1511,18 @@ const handleDefaultTreeExpand = ($xeTable) => {
1511
1511
  const internalData = $xeTable;
1512
1512
  const { treeConfig } = props;
1513
1513
  if (treeConfig) {
1514
- const { tableFullData } = internalData;
1514
+ const { fullAllDataRowIdData } = internalData;
1515
1515
  const treeOpts = $xeTable.computeTreeOpts;
1516
1516
  const { expandAll, expandRowKeys } = treeOpts;
1517
- const childrenField = treeOpts.children || treeOpts.childrenField;
1518
1517
  if (expandAll) {
1519
1518
  $xeTable.setAllTreeExpand(true);
1520
1519
  }
1521
1520
  else if (expandRowKeys) {
1522
1521
  const defExpandeds = [];
1523
- const rowkey = getRowkey($xeTable);
1524
1522
  expandRowKeys.forEach((rowid) => {
1525
- const matchObj = XEUtils.findTree(tableFullData, item => rowid === XEUtils.get(item, rowkey), { children: childrenField });
1526
- if (matchObj) {
1527
- defExpandeds.push(matchObj.item);
1523
+ const rowRest = fullAllDataRowIdData[rowid];
1524
+ if (rowRest) {
1525
+ defExpandeds.push(rowRest.row);
1528
1526
  }
1529
1527
  });
1530
1528
  $xeTable.setTreeExpand(defExpandeds, true);
@@ -7729,8 +7727,8 @@ const Methods = {
7729
7727
  $xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
7730
7728
  }
7731
7729
  }
7732
- if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaEvent) {
7733
- $xeTable.handleHeaderCellAreaEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
7730
+ if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaModownEvent) {
7731
+ $xeTable.handleHeaderCellAreaModownEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
7734
7732
  }
7735
7733
  $xeTable.focus();
7736
7734
  if ($xeTable.closeMenu) {
@@ -1572,7 +1572,7 @@ export default {
1572
1572
  if (rowOpts.height && !this.showOverflow) {
1573
1573
  warnLog('vxe.error.notProp', ['table.show-overflow']);
1574
1574
  }
1575
- if (!$xeTable.triggerCellAreaMousednEvent) {
1575
+ if (!$xeTable.triggerCellAreaModownEvent) {
1576
1576
  if (props.areaConfig) {
1577
1577
  warnLog('vxe.error.notProp', ['area-config']);
1578
1578
  }
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.17.0-beta.3";
3
+ export const version = "3.17.0-beta.5";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.17.0-beta.3"}`;
3
+ const version = `table v${"3.17.0-beta.5"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
2002
2002
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2003
2003
 
2004
2004
 
2005
- const version = "3.17.0-beta.3";
2005
+ const version = "3.17.0-beta.5";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
2667
2667
  const {
2668
2668
  log: log_log
2669
2669
  } = core_.VxeUI;
2670
- const log_version = `table v${"3.17.0-beta.3"}`;
2670
+ const log_version = `table v${"3.17.0-beta.5"}`;
2671
2671
  const warnLog = log_log.create('warn', log_version);
2672
2672
  const errLog = log_log.create('error', log_version);
2673
2673
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -7098,25 +7098,21 @@ const handleDefaultTreeExpand = $xeTable => {
7098
7098
  } = props;
7099
7099
  if (treeConfig) {
7100
7100
  const {
7101
- tableFullData
7101
+ fullAllDataRowIdData
7102
7102
  } = internalData;
7103
7103
  const treeOpts = $xeTable.computeTreeOpts;
7104
7104
  const {
7105
7105
  expandAll,
7106
7106
  expandRowKeys
7107
7107
  } = treeOpts;
7108
- const childrenField = treeOpts.children || treeOpts.childrenField;
7109
7108
  if (expandAll) {
7110
7109
  $xeTable.setAllTreeExpand(true);
7111
7110
  } else if (expandRowKeys) {
7112
7111
  const defExpandeds = [];
7113
- const rowkey = getRowkey($xeTable);
7114
7112
  expandRowKeys.forEach(rowid => {
7115
- const matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullData, item => rowid === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(item, rowkey), {
7116
- children: childrenField
7117
- });
7118
- if (matchObj) {
7119
- defExpandeds.push(matchObj.item);
7113
+ const rowRest = fullAllDataRowIdData[rowid];
7114
+ if (rowRest) {
7115
+ defExpandeds.push(rowRest.row);
7120
7116
  }
7121
7117
  });
7122
7118
  $xeTable.setTreeExpand(defExpandeds, true);
@@ -14294,8 +14290,8 @@ const Methods = {
14294
14290
  $xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
14295
14291
  }
14296
14292
  }
14297
- if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaEvent) {
14298
- $xeTable.handleHeaderCellAreaEvent(evnt, Object.assign({
14293
+ if (!triggerDrag && mouseConfig && mouseOpts.area && $xeTable.handleHeaderCellAreaModownEvent) {
14294
+ $xeTable.handleHeaderCellAreaModownEvent(evnt, Object.assign({
14299
14295
  cell,
14300
14296
  triggerSort,
14301
14297
  triggerFilter
@@ -26604,8 +26600,8 @@ function handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRigh
26604
26600
  mouseConfig,
26605
26601
  mouseOpts
26606
26602
  } = this;
26607
- if (mouseConfig && mouseOpts.area && $xeTable.triggerCellAreaMousednEvent) {
26608
- return $xeTable.triggerCellAreaMousednEvent(evnt, params);
26603
+ if (mouseConfig && mouseOpts.area && $xeTable.triggerCellAreaModownEvent) {
26604
+ return $xeTable.triggerCellAreaModownEvent(evnt, params);
26609
26605
  } else {
26610
26606
  if (checkboxConfig && checkboxOpts.range) {
26611
26607
  this.handleCheckboxRangeEvent(evnt, params);
@@ -29548,7 +29544,7 @@ function renderBody(h, $xeTable) {
29548
29544
  if (rowOpts.height && !this.showOverflow) {
29549
29545
  warnLog('vxe.error.notProp', ['table.show-overflow']);
29550
29546
  }
29551
- if (!$xeTable.triggerCellAreaMousednEvent) {
29547
+ if (!$xeTable.triggerCellAreaModownEvent) {
29552
29548
  if (props.areaConfig) {
29553
29549
  warnLog('vxe.error.notProp', ['area-config']);
29554
29550
  }