@juzhenfe/page-model 3.21.0 → 3.21.1

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.
@@ -248,8 +248,8 @@ export default class TableManager extends IManager {
248
248
  /**
249
249
  * 清空表格多选
250
250
  */
251
- clearElTableSelection(): void;
252
- toggleRowSelection(row: any, selected: boolean): void;
251
+ clearElTableSelection(): boolean;
252
+ toggleRowSelection(row: any, selected: boolean): boolean;
253
253
  /**
254
254
  * 基于当前selection设置当前表格选中状态
255
255
  */
package/dist/index.es.js CHANGED
@@ -5207,16 +5207,22 @@ class TableManager extends IManager {
5207
5207
  }, 0);
5208
5208
  }
5209
5209
  clearElTableSelection() {
5210
- if (this.virtualTableRef) {
5210
+ if (!this.tableRef || this.virtualTableRef) {
5211
+ return false;
5212
+ }
5213
+ if (this.table.virtual) {
5211
5214
  this.virtualTableRef.clearSelection && this.virtualTableRef.clearSelection();
5212
- } else if (this.tableRef) {
5215
+ } else {
5213
5216
  this.tableRef.clearSelection && this.tableRef.clearSelection();
5214
5217
  }
5215
5218
  }
5216
5219
  toggleRowSelection(row, selected) {
5217
- if (this.virtualTableRef) {
5220
+ if (!this.tableRef || this.virtualTableRef) {
5221
+ return false;
5222
+ }
5223
+ if (this.table.virtual) {
5218
5224
  this.virtualTableRef.toggleRowSelection && this.virtualTableRef.toggleRowSelection(row, selected);
5219
- } else if (this.tableRef) {
5225
+ } else {
5220
5226
  this.tableRef.toggleRowSelection && this.tableRef.toggleRowSelection(row, selected);
5221
5227
  }
5222
5228
  }
@@ -15753,7 +15759,7 @@ const defineEditableTable = function(config) {
15753
15759
  };
15754
15760
  var iconfont = "";
15755
15761
  const name = "@juzhenfe/page-model";
15756
- const version = "3.21.0";
15762
+ const version = "3.21.1";
15757
15763
  const types = "dist/main.d.ts";
15758
15764
  const main = "dist/index.umd.js";
15759
15765
  const keywords = [