@visactor/vtable 1.5.2 → 1.5.3-alpha.0

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.
@@ -68,7 +68,7 @@ export declare class ListTable extends BaseTable implements ListTableAPI {
68
68
  sortState?: SortState | SortState[];
69
69
  }): void;
70
70
  setRecordChildren(records: any[], col: number, row: number): void;
71
- startEditCell(col?: number, row?: number): void;
71
+ startEditCell(col?: number, row?: number, value?: string | number): void;
72
72
  completeEditCell(): void;
73
73
  getEditor(col: number, row: number): IEditor<any>;
74
74
  isHasEditorDefine(col: number, row: number): boolean;
package/cjs/ListTable.js CHANGED
@@ -486,12 +486,12 @@ class ListTable extends core_1.BaseTable {
486
486
  const index = this.getRecordShowIndexByCell(col, row);
487
487
  this.dataSource.setRecord(record, index), this._refreshHierarchyState(col, row);
488
488
  }
489
- startEditCell(col, row) {
489
+ startEditCell(col, row, value) {
490
490
  var _a;
491
491
  if ((0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row)) this.eventManager.isDraging = !1,
492
- this.selectCell(col, row), this.editorManager.startEditCell(col, row); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
492
+ this.selectCell(col, row), this.editorManager.startEditCell(col, row, value); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
493
493
  const {col: col, row: row} = this.stateManager.select.cellPos;
494
- (0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row) && this.editorManager.startEditCell(col, row);
494
+ (0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row) && this.editorManager.startEditCell(col, row, value);
495
495
  }
496
496
  }
497
497
  completeEditCell() {