vxe-table 3.7.0-beta.8 → 3.7.0-beta.9

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.
Files changed (71) hide show
  1. package/lib/edit/src/mixin.js +7 -6
  2. package/lib/edit/src/mixin.min.js +1 -1
  3. package/lib/export/src/mixin.js +1 -1
  4. package/lib/export/src/mixin.min.js +1 -1
  5. package/lib/icon/style/style.css +1 -1
  6. package/lib/icon/style/style.min.css +1 -1
  7. package/lib/index.css +1 -1
  8. package/lib/index.umd.js +54 -57
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/style.min.css +1 -1
  12. package/lib/table/src/body.js +2 -2
  13. package/lib/table/src/body.min.js +1 -1
  14. package/lib/table/src/cell.js +5 -3
  15. package/lib/table/src/cell.min.js +1 -1
  16. package/lib/table/src/columnInfo.js +3 -3
  17. package/lib/table/src/columnInfo.min.js +1 -1
  18. package/lib/table/src/methods.js +35 -29
  19. package/lib/table/src/methods.min.js +1 -1
  20. package/lib/table/src/table.js +11 -5
  21. package/lib/table/src/table.min.js +1 -1
  22. package/lib/table/src/util.js +1 -1
  23. package/lib/table/src/util.min.js +1 -1
  24. package/lib/table/style/style.css +5 -0
  25. package/lib/table/style/style.min.css +1 -1
  26. package/lib/toolbar/src/toolbar.js +5 -1
  27. package/lib/toolbar/src/toolbar.min.js +1 -1
  28. package/lib/tools/log.js +1 -1
  29. package/lib/tools/log.min.js +1 -1
  30. package/lib/tooltip/style/style.css +0 -6
  31. package/lib/tooltip/style/style.min.css +1 -1
  32. package/lib/v-x-e-table/index.js +1 -1
  33. package/lib/v-x-e-table/index.min.js +1 -1
  34. package/lib/v-x-e-table/src/commands.js +7 -5
  35. package/lib/v-x-e-table/src/commands.min.js +1 -1
  36. package/lib/v-x-e-table/src/conf.js +3 -3
  37. package/lib/v-x-e-table/src/conf.min.js +1 -1
  38. package/lib/v-x-e-table/src/formats.js +7 -5
  39. package/lib/v-x-e-table/src/formats.min.js +1 -1
  40. package/lib/v-x-e-table/src/menus.js +7 -5
  41. package/lib/v-x-e-table/src/menus.min.js +1 -1
  42. package/lib/validator/src/mixin.js +10 -0
  43. package/lib/validator/src/mixin.min.js +1 -1
  44. package/package.json +1 -1
  45. package/packages/edit/src/mixin.js +6 -6
  46. package/packages/export/src/mixin.js +1 -1
  47. package/packages/table/src/body.js +2 -2
  48. package/packages/table/src/cell.js +3 -3
  49. package/packages/table/src/columnInfo.js +3 -3
  50. package/packages/table/src/methods.js +32 -32
  51. package/packages/table/src/table.js +11 -5
  52. package/packages/table/src/util.js +1 -1
  53. package/packages/toolbar/src/toolbar.js +4 -1
  54. package/packages/v-x-e-table/src/commands.js +6 -4
  55. package/packages/v-x-e-table/src/conf.js +3 -3
  56. package/packages/v-x-e-table/src/formats.js +6 -4
  57. package/packages/v-x-e-table/src/menus.js +6 -4
  58. package/packages/validator/src/mixin.js +10 -0
  59. package/styles/table.scss +7 -0
  60. package/styles/tooltip.scss +0 -8
  61. package/types/all.d.ts +2 -2
  62. package/types/table.d.ts +20 -4
  63. package/types/v-x-e-table/formats.d.ts +1 -1
  64. package/types/v-x-e-table/index.d.ts +3 -3
  65. package/types/v-x-e-table/setup.d.ts +10 -33
  66. /package/lib/icon/style/{iconfont.1690504677290.ttf → iconfont.1690761747506.ttf} +0 -0
  67. /package/lib/icon/style/{iconfont.1690504677290.woff → iconfont.1690761747506.woff} +0 -0
  68. /package/lib/icon/style/{iconfont.1690504677290.woff2 → iconfont.1690761747506.woff2} +0 -0
  69. /package/lib/{iconfont.1690504677290.ttf → iconfont.1690761747506.ttf} +0 -0
  70. /package/lib/{iconfont.1690504677290.woff → iconfont.1690761747506.woff} +0 -0
  71. /package/lib/{iconfont.1690504677290.woff2 → iconfont.1690761747506.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10740,9 +10740,9 @@ var iconPrefix = 'vxe-icon-';
10740
10740
  treeConfig: {
10741
10741
  rowField: 'id',
10742
10742
  parentField: 'parentId',
10743
- children: 'children',
10744
- hasChild: 'hasChild',
10745
- mapChildren: '_X_ROW_CHILD',
10743
+ childrenField: 'children',
10744
+ hasChildField: 'hasChild',
10745
+ mapChildrenField: '_X_ROW_CHILD',
10746
10746
  indent: 20,
10747
10747
  showIcon: true
10748
10748
  },
@@ -12096,12 +12096,7 @@ var VXECommandsStore = /*#__PURE__*/function () {
12096
12096
  value: function add(name, render) {
12097
12097
  var conf = this.store[name];
12098
12098
  // 兼容
12099
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
12100
- // warnLog('vxe.error.delProp', ['callback', 'commandMethod'])
12101
- render = {
12102
- commandMethod: render
12103
- };
12104
- }
12099
+ if (false) {}
12105
12100
 
12106
12101
  // 检测是否覆盖
12107
12102
  if (false) { var confKeys; }
@@ -12154,12 +12149,7 @@ var VXEMenusStore = /*#__PURE__*/function () {
12154
12149
  value: function add(name, render) {
12155
12150
  var conf = this.store[name];
12156
12151
  // 兼容
12157
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
12158
- // warnLog('vxe.error.delProp', ['callback', 'menuMethod'])
12159
- render = {
12160
- menuMethod: render
12161
- };
12162
- }
12152
+ if (false) {}
12163
12153
 
12164
12154
  // 检测是否覆盖
12165
12155
  if (false) { var confKeys; }
@@ -12212,12 +12202,7 @@ var VXEFormatsStore = /*#__PURE__*/function () {
12212
12202
  value: function add(name, render) {
12213
12203
  var conf = this.store[name];
12214
12204
  // 兼容
12215
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
12216
- // warnLog('vxe.error.delProp', ['callback', 'formatMethod'])
12217
- render = {
12218
- formatMethod: render
12219
- };
12220
- }
12205
+ if (false) {}
12221
12206
 
12222
12207
  // 检测是否覆盖
12223
12208
  if (false) { var confKeys; }
@@ -13024,7 +13009,7 @@ function countTreeExpand(prevRow, params) {
13024
13009
  return count;
13025
13010
  }
13026
13011
  var $table = params.$table;
13027
- var rowChildren = prevRow[$table.treeOpts.children];
13012
+ var rowChildren = prevRow[$table.treeOpts.childrenField || $table.treeOpts.children];
13028
13013
  if ($table.isTreeExpandByRow(prevRow)) {
13029
13014
  for (var index = 0; index < rowChildren.length; index++) {
13030
13015
  count += countTreeExpand(rowChildren[index], params);
@@ -13222,7 +13207,7 @@ function renderLine(h, _vm, $xetable, params) {
13222
13207
  if (slots && slots.line) {
13223
13208
  return $xetable.callSlot(slots.line, params, h);
13224
13209
  }
13225
- if (treeConfig && treeNode && treeOpts.line) {
13210
+ if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
13226
13211
  return [h('div', {
13227
13212
  "class": 'vxe-tree--line-wrapper'
13228
13213
  }, [h('div', {
@@ -13550,7 +13535,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
13550
13535
  isNewRow = $xetable.isInsertByRow(row);
13551
13536
  }
13552
13537
  if (treeConfig && !scrollYLoad && !treeOpts.transform && treeExpandeds.length) {
13553
- rowChildren = row[treeOpts.children];
13538
+ rowChildren = row[treeOpts.childrenField || treeOpts.children];
13554
13539
  isExpandTree = rowChildren && rowChildren.length && treeExpandeds.indexOf(row) > -1;
13555
13540
  }
13556
13541
  rows.push(h('tr', {
@@ -14986,7 +14971,9 @@ var Cell = {
14986
14971
  column = params.column,
14987
14972
  level = params.level;
14988
14973
  var slots = column.slots;
14989
- var children = treeOpts.children,
14974
+ var childrenField = treeOpts.childrenField,
14975
+ children = treeOpts.children,
14976
+ hasChildField = treeOpts.hasChildField,
14990
14977
  hasChild = treeOpts.hasChild,
14991
14978
  indent = treeOpts.indent,
14992
14979
  lazy = treeOpts.lazy,
@@ -14995,7 +14982,7 @@ var Cell = {
14995
14982
  showIcon = treeOpts.showIcon,
14996
14983
  iconOpen = treeOpts.iconOpen,
14997
14984
  iconClose = treeOpts.iconClose;
14998
- var rowChilds = row[children];
14985
+ var rowChilds = row[childrenField || children];
14999
14986
  var hasLazyChilds = false;
15000
14987
  var isAceived = false;
15001
14988
  var isLazyLoaded = false;
@@ -15007,7 +14994,7 @@ var Cell = {
15007
14994
  isAceived = $table.findRowIndexOf(treeExpandeds, row) > -1;
15008
14995
  if (lazy) {
15009
14996
  isLazyLoaded = $table.findRowIndexOf(treeLazyLoadeds, row) > -1;
15010
- hasLazyChilds = row[hasChild];
14997
+ hasLazyChilds = row[hasChildField || hasChild];
15011
14998
  }
15012
14999
  }
15013
15000
  if (!trigger || trigger === 'default') {
@@ -16038,8 +16025,8 @@ var Methods = {
16038
16025
  treeData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullData, {
16039
16026
  key: treeOpts.rowField,
16040
16027
  parentKey: treeOpts.parentField,
16041
- children: treeOpts.children,
16042
- mapChildren: treeOpts.mapChildren
16028
+ children: treeOpts.childrenField || treeOpts.children,
16029
+ mapChildren: treeOpts.mapChildrenField
16043
16030
  });
16044
16031
  fullData = treeData.slice(0);
16045
16032
  } else {
@@ -16257,8 +16244,8 @@ var Methods = {
16257
16244
  rowid = getRowUniqueId();
16258
16245
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, rowkey, rowid);
16259
16246
  }
16260
- if (isLazy && row[treeOpts.hasChild] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[treeOpts.children])) {
16261
- row[treeOpts.children] = null;
16247
+ if (isLazy && row[treeOpts.hasChildField || treeOpts.hasChild] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[treeOpts.childrenField || treeOpts.children])) {
16248
+ row[treeOpts.childrenField || treeOpts.children] = null;
16262
16249
  }
16263
16250
  var rest = {
16264
16251
  row: row,
@@ -16327,8 +16314,9 @@ var Methods = {
16327
16314
  fullAllDataRowMap = this.fullAllDataRowMap,
16328
16315
  fullAllDataRowIdData = this.fullAllDataRowIdData;
16329
16316
  var transform = treeOpts.transform,
16317
+ childrenField = treeOpts.childrenField,
16330
16318
  children = treeOpts.children,
16331
- mapChildren = treeOpts.mapChildren;
16319
+ mapChildrenField = treeOpts.mapChildrenField;
16332
16320
  var rest = fullAllDataRowIdData[getRowid(this, row)];
16333
16321
  var parentLevel = rest ? rest.level : 0;
16334
16322
  return this.createData(childRecords).then(function (rows) {
@@ -16338,7 +16326,7 @@ var Methods = {
16338
16326
  return rowid === getRowid(_this12, item);
16339
16327
  }, treeOpts);
16340
16328
  if (matchObj) {
16341
- matchObj.item[children] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(rows, true);
16329
+ matchObj.item[childrenField || children] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(rows, true);
16342
16330
  }
16343
16331
  }
16344
16332
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rows, function (childRow, index, items, path, parent, nodes) {
@@ -16359,9 +16347,9 @@ var Methods = {
16359
16347
  fullAllDataRowIdData[rowid] = rest;
16360
16348
  fullAllDataRowMap.set(childRow, rest);
16361
16349
  }, treeOpts);
16362
- row[children] = rows;
16350
+ row[childrenField || children] = rows;
16363
16351
  if (transform) {
16364
- row[mapChildren] = rows;
16352
+ row[mapChildrenField] = rows;
16365
16353
  }
16366
16354
  _this12.updateAfterDataIndex();
16367
16355
  return rows;
@@ -16616,8 +16604,8 @@ var Methods = {
16616
16604
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(record, key, null);
16617
16605
  }
16618
16606
  });
16619
- if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[treeOpts.children])) {
16620
- record[treeOpts.children] = null;
16607
+ if (treeConfig && treeOpts.lazy && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(record[treeOpts.childrenField || treeOpts.children])) {
16608
+ record[treeOpts.childrenField || treeOpts.children] = null;
16621
16609
  }
16622
16610
  // 必须有行数据的唯一主键,可以自行设置;也可以默认生成一个随机数
16623
16611
  if (eqEmptyValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(record, rowkey))) {
@@ -16834,8 +16822,9 @@ var Methods = {
16834
16822
  tableFullTreeData = this.tableFullTreeData,
16835
16823
  afterTreeFullData = this.afterTreeFullData;
16836
16824
  var transform = treeOpts.transform,
16825
+ childrenField = treeOpts.childrenField,
16837
16826
  children = treeOpts.children,
16838
- mapChildren = treeOpts.mapChildren;
16827
+ mapChildrenField = treeOpts.mapChildrenField;
16839
16828
  var checkField = checkboxOpts.checkField;
16840
16829
  var currTableData = isFull ? transform ? tableFullTreeData : tableFullData : transform ? afterTreeFullData : afterFullData;
16841
16830
  var rowList = [];
@@ -16844,7 +16833,7 @@ var Methods = {
16844
16833
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().filterTree(currTableData, function (row) {
16845
16834
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkField);
16846
16835
  }, {
16847
- children: transform ? mapChildren : children
16836
+ children: transform ? mapChildrenField : childrenField || children
16848
16837
  });
16849
16838
  } else {
16850
16839
  rowList = currTableData.filter(function (row) {
@@ -16857,7 +16846,7 @@ var Methods = {
16857
16846
  rowList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().filterTree(currTableData, function (row) {
16858
16847
  return _this17.findRowIndexOf(selectCheckboxRows, row) > -1;
16859
16848
  }, {
16860
- children: transform ? mapChildren : children
16849
+ children: transform ? mapChildrenField : childrenField || children
16861
16850
  });
16862
16851
  } else {
16863
16852
  rowList = currTableData.filter(function (row) {
@@ -16886,7 +16875,7 @@ var Methods = {
16886
16875
  fullData.push(row);
16887
16876
  }
16888
16877
  }, {
16889
- children: treeOpts.mapChildren
16878
+ children: treeOpts.mapChildrenField
16890
16879
  });
16891
16880
  this.afterFullData = fullData;
16892
16881
  this.updateScrollYStatus(fullData);
@@ -17137,7 +17126,7 @@ var Methods = {
17137
17126
  fullDataRowIdData[rowid] = rest;
17138
17127
  }
17139
17128
  }, {
17140
- children: treeOpts.transform ? treeOpts.mapChildren : treeOpts.children
17129
+ children: treeOpts.transform ? treeOpts.mapChildrenField : treeOpts.childrenField || treeOpts.children
17141
17130
  });
17142
17131
  } else {
17143
17132
  afterFullData.forEach(function (row, index) {
@@ -20461,8 +20450,9 @@ var Methods = {
20461
20450
  treeLazyLoadeds = this.treeLazyLoadeds;
20462
20451
  var transform = treeOpts.transform,
20463
20452
  lazy = treeOpts.lazy,
20453
+ hasChildField = treeOpts.hasChildField,
20464
20454
  hasChild = treeOpts.hasChild;
20465
- if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
20455
+ if (lazy && row[hasChildField || hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
20466
20456
  this.clearTreeExpandLoaded(row).then(function () {
20467
20457
  return _this47.handleAsyncTreeExpandChilds(row);
20468
20458
  }).then(function () {
@@ -20601,10 +20591,11 @@ var Methods = {
20601
20591
  var tableFullData = this.tableFullData,
20602
20592
  treeOpts = this.treeOpts;
20603
20593
  var lazy = treeOpts.lazy,
20594
+ childrenField = treeOpts.childrenField,
20604
20595
  children = treeOpts.children;
20605
20596
  var expandeds = [];
20606
20597
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullData, function (row) {
20607
- var rowChildren = row[children];
20598
+ var rowChildren = row[childrenField || children];
20608
20599
  if (lazy || rowChildren && rowChildren.length) {
20609
20600
  expandeds.push(row);
20610
20601
  }
@@ -20627,7 +20618,9 @@ var Methods = {
20627
20618
  treeNodeColumn = this.treeNodeColumn;
20628
20619
  var reserve = treeOpts.reserve,
20629
20620
  lazy = treeOpts.lazy,
20621
+ hasChildField = treeOpts.hasChildField,
20630
20622
  hasChild = treeOpts.hasChild,
20623
+ childrenField = treeOpts.childrenField,
20631
20624
  children = treeOpts.children,
20632
20625
  accordion = treeOpts.accordion,
20633
20626
  toggleMethod = treeOpts.toggleMethod;
@@ -20659,12 +20652,12 @@ var Methods = {
20659
20652
  validRows.forEach(function (row) {
20660
20653
  if (treeExpandeds.indexOf(row) === -1) {
20661
20654
  var rest = fullAllDataRowMap.get(row);
20662
- var isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1;
20655
+ var isLoad = lazy && row[hasChildField || hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1;
20663
20656
  // 是否使用懒加载
20664
20657
  if (isLoad) {
20665
20658
  result.push(_this49.handleAsyncTreeExpandChilds(row));
20666
20659
  } else {
20667
- if (row[children] && row[children].length) {
20660
+ if (row[childrenField || children] && row[childrenField || children].length) {
20668
20661
  treeExpandeds.push(row);
20669
20662
  }
20670
20663
  }
@@ -21350,10 +21343,10 @@ var Methods = {
21350
21343
  };
21351
21344
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
21352
21345
  var gFormatOpts = formats.get(formatter);
21353
- cellLabel = gFormatOpts && gFormatOpts.formatMethod ? gFormatOpts.formatMethod(formatParams) : '';
21346
+ cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : '';
21354
21347
  } else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
21355
21348
  var _gFormatOpts = formats.get(formatter[0]);
21356
- cellLabel = _gFormatOpts && _gFormatOpts.formatMethod ? _gFormatOpts.formatMethod.apply(_gFormatOpts, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
21349
+ cellLabel = _gFormatOpts && _gFormatOpts.cellFormatMethod ? _gFormatOpts.cellFormatMethod.apply(_gFormatOpts, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
21357
21350
  } else {
21358
21351
  cellLabel = formatter(formatParams);
21359
21352
  }
@@ -22542,7 +22535,7 @@ function handleUupdateResize(_vm) {
22542
22535
  var leftList = columnStore.leftList,
22543
22536
  rightList = columnStore.rightList;
22544
22537
  return h('div', {
22545
- "class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), _defineProperty(_ref, 'vxe-editable', !!editConfig), _defineProperty(_ref, 'cell--highlight', highlightCell), _defineProperty(_ref, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref, 'is--header', showHeader), _defineProperty(_ref, 'is--footer', showFooter), _defineProperty(_ref, 'is--group', isGroup), _defineProperty(_ref, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref, 'is--fixed-left', leftList.length), _defineProperty(_ref, 'is--fixed-right', rightList.length), _defineProperty(_ref, 'is--animat', !!this.animat), _defineProperty(_ref, 'is--round', this.round), _defineProperty(_ref, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref, 'is--loading', loading), _defineProperty(_ref, 'is--empty', !loading && !tableData.length), _defineProperty(_ref, 'is--scroll-y', overflowY), _defineProperty(_ref, 'is--scroll-x', overflowX), _defineProperty(_ref, 'is--virtual-x', scrollXLoad), _defineProperty(_ref, 'is--virtual-y', scrollYLoad), _ref)],
22538
+ "class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), _defineProperty(_ref, 'vxe-editable', !!editConfig), _defineProperty(_ref, 'cell--highlight', highlightCell), _defineProperty(_ref, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref, 'is--header', showHeader), _defineProperty(_ref, 'is--footer', showFooter), _defineProperty(_ref, 'is--group', isGroup), _defineProperty(_ref, 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), _defineProperty(_ref, 'is--fixed-left', leftList.length), _defineProperty(_ref, 'is--fixed-right', rightList.length), _defineProperty(_ref, 'is--animat', !!this.animat), _defineProperty(_ref, 'is--round', this.round), _defineProperty(_ref, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref, 'is--loading', loading), _defineProperty(_ref, 'is--empty', !loading && !tableData.length), _defineProperty(_ref, 'is--scroll-y', overflowY), _defineProperty(_ref, 'is--scroll-x', overflowX), _defineProperty(_ref, 'is--virtual-x', scrollXLoad), _defineProperty(_ref, 'is--virtual-y', scrollYLoad), _ref)],
22546
22539
  on: {
22547
22540
  keydown: this.keydownEvent
22548
22541
  }
@@ -23760,8 +23753,9 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23760
23753
  treeOpts = _vm.treeOpts;
23761
23754
  var rowField = treeOpts.rowField,
23762
23755
  parentField = treeOpts.parentField,
23756
+ childrenField = treeOpts.childrenField,
23763
23757
  children = treeOpts.children,
23764
- mapChildren = treeOpts.mapChildren;
23758
+ mapChildrenField = treeOpts.mapChildrenField;
23765
23759
  var funcName = isAppend ? 'push' : 'unshift';
23766
23760
  newRecords.forEach(function (item) {
23767
23761
  var parentRowId = item[parentField];
@@ -23769,15 +23763,15 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23769
23763
  var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, function (item) {
23770
23764
  return parentRowId === item[rowField];
23771
23765
  }, {
23772
- children: mapChildren
23766
+ children: mapChildrenField
23773
23767
  }) : null;
23774
23768
  if (matchObj) {
23775
23769
  var parentRow = matchObj.item;
23776
23770
  var parentRest = fullAllDataRowIdData[getRowid(_vm, parentRow)];
23777
23771
  var parentLevel = parentRest ? parentRest.level : 0;
23778
- var parentChilds = parentRow[children];
23772
+ var parentChilds = parentRow[childrenField || children];
23779
23773
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(parentChilds)) {
23780
- parentChilds = parentRow[children] = [];
23774
+ parentChilds = parentRow[childrenField || children] = [];
23781
23775
  }
23782
23776
  parentChilds[funcName](item);
23783
23777
  var rest = {
@@ -23844,7 +23838,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23844
23838
  treeOpts = this.treeOpts;
23845
23839
  var transform = treeOpts.transform,
23846
23840
  rowField = treeOpts.rowField,
23847
- mapChildren = treeOpts.mapChildren;
23841
+ mapChildrenField = treeOpts.mapChildrenField;
23848
23842
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(records)) {
23849
23843
  records = [records];
23850
23844
  }
@@ -23889,7 +23883,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
23889
23883
  var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(tableFullTreeData, function (item) {
23890
23884
  return row[rowField] === item[rowField];
23891
23885
  }, {
23892
- children: mapChildren
23886
+ children: mapChildrenField
23893
23887
  });
23894
23888
  if (matchObj) {
23895
23889
  var parentRow = matchObj.parent;
@@ -30312,7 +30306,7 @@ function getExportBlobByContent(content, options) {
30312
30306
  }
30313
30307
  function hasTreeChildren($xetable, row) {
30314
30308
  var treeOpts = $xetable.treeOpts;
30315
- return row[treeOpts.children] && row[treeOpts.children].length > 0;
30309
+ return row[treeOpts.childrenField || treeOpts.children] && row[treeOpts.childrenField || treeOpts.children].length > 0;
30316
30310
  }
30317
30311
  function getSeq($xetable, row, $rowIndex, column, $columnIndex) {
30318
30312
  var seqOpts = $xetable.seqOpts;
@@ -32455,12 +32449,14 @@ function validErrorRuleValue(rule, val) {
32455
32449
  * 完整校验,和 validate 的区别就是会给有效数据中的每一行进行校验
32456
32450
  */
32457
32451
  _fullValidate: function _fullValidate(rows, cb) {
32452
+ if (false) {}
32458
32453
  return this.beginValidate(rows, cb, true);
32459
32454
  },
32460
32455
  /**
32461
32456
  * 快速校验,如果存在记录不通过的记录,则返回不再继续校验(异步校验除外)
32462
32457
  */
32463
32458
  _validate: function _validate(rows, cb) {
32459
+ if (false) {}
32464
32460
  return this.beginValidate(rows, cb);
32465
32461
  },
32466
32462
  /**
@@ -34963,7 +34959,8 @@ function renderCustoms(h, _vm) {
34963
34959
  created: function created() {
34964
34960
  var _this = this;
34965
34961
  var refresh = this.refresh,
34966
- refreshOpts = this.refreshOpts;
34962
+ refreshOpts = this.refreshOpts,
34963
+ customOpts = this.customOpts;
34967
34964
  this.$nextTick(function () {
34968
34965
  var $xetable = _this.fintTable();
34969
34966
  var queryMethod = refreshOpts.queryMethod || refreshOpts.query;