@visactor/vtable 1.22.4-alpha.5 → 1.22.4-alpha.7

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/es/ListTable.js CHANGED
@@ -321,7 +321,8 @@ export class ListTable extends BaseTable {
321
321
  }) {
322
322
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
323
323
  const internalProps = this.internalProps;
324
- if (super.updateOption(options, updateConfig), internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode,
324
+ if (this.pluginManager.updatePlugins(options.plugins), super.updateOption(options, updateConfig),
325
+ internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode,
325
326
  this.pagination = options.pagination, internalProps.sortState = options.sortState,
326
327
  internalProps.dataConfig = this.internalProps.groupBy ? getGroupByDataConfig(this.internalProps.groupBy, options.addRecordRule) : {
327
328
  addRecordRule: options.addRecordRule
@@ -346,7 +347,7 @@ export class ListTable extends BaseTable {
346
347
  const EmptyTip = Factory.getComponent("emptyTip");
347
348
  this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_j = this.internalProps.emptyTip) || void 0 === _j || _j.resetVisible();
348
349
  }
349
- return this.pluginManager.updatePlugins(options.plugins), setTimeout((() => {
350
+ return setTimeout((() => {
350
351
  this.fireListeners(TABLE_EVENT_TYPE.UPDATED, null);
351
352
  }), 0), new Promise((resolve => {
352
353
  setTimeout(resolve, 0);
@@ -590,7 +591,7 @@ export class ListTable extends BaseTable {
590
591
  })).map((key => this.stateManager.checkedState.get(key)));
591
592
  return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), Array.from(stateArr, (state => state && state[field]));
592
593
  }
593
- return new Array(...this.stateManager.checkedState.values());
594
+ return [ ...this.stateManager.checkedState.values() ];
594
595
  }
595
596
  getCellCheckboxState(col, row) {
596
597
  var _a;