@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.
package/es/ListTable.d.ts CHANGED
@@ -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/es/ListTable.js CHANGED
@@ -481,12 +481,12 @@ export class ListTable extends BaseTable {
481
481
  const index = this.getRecordShowIndexByCell(col, row);
482
482
  this.dataSource.setRecord(record, index), this._refreshHierarchyState(col, row);
483
483
  }
484
- startEditCell(col, row) {
484
+ startEditCell(col, row, value) {
485
485
  var _a;
486
486
  if (isValid(col) && isValid(row)) this.eventManager.isDraging = !1, this.selectCell(col, row),
487
- this.editorManager.startEditCell(col, row); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
487
+ this.editorManager.startEditCell(col, row, value); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
488
488
  const {col: col, row: row} = this.stateManager.select.cellPos;
489
- isValid(col) && isValid(row) && this.editorManager.startEditCell(col, row);
489
+ isValid(col) && isValid(row) && this.editorManager.startEditCell(col, row, value);
490
490
  }
491
491
  }
492
492
  completeEditCell() {