@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.
@@ -84,7 +84,7 @@ export declare class PivotTable extends BaseTable implements PivotTableAPI {
84
84
  _hasHierarchyTreeHeader(): boolean;
85
85
  getMenuInfo(col: number, row: number, type: string): DropDownMenuEventInfo;
86
86
  setRecords(records: Array<any>): void;
87
- startEditCell(col?: number, row?: number): void;
87
+ startEditCell(col?: number, row?: number, value?: string | number): void;
88
88
  completeEditCell(): void;
89
89
  getEditor(col: number, row: number): IEditor<any>;
90
90
  isHasEditorDefine(col: number, row: number): boolean;
package/es/PivotTable.js CHANGED
@@ -697,12 +697,12 @@ export class PivotTable extends BaseTable {
697
697
  this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), this.internalProps.emptyTip.resetVisible();
698
698
  }
699
699
  }
700
- startEditCell(col, row) {
700
+ startEditCell(col, row, value) {
701
701
  var _a;
702
702
  if (isValid(col) && isValid(row)) this.eventManager.isDraging = !1, this.selectCell(col, row),
703
- this.editorManager.startEditCell(col, row); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
703
+ this.editorManager.startEditCell(col, row, value); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
704
704
  const {col: col, row: row} = this.stateManager.select.cellPos;
705
- isValid(col) && isValid(row) && this.editorManager.startEditCell(col, row);
705
+ isValid(col) && isValid(row) && this.editorManager.startEditCell(col, row, value);
706
706
  }
707
707
  }
708
708
  completeEditCell() {