@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/cjs/PivotTable.js CHANGED
@@ -698,12 +698,12 @@ class PivotTable extends BaseTable_1.BaseTable {
698
698
  this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), this.internalProps.emptyTip.resetVisible();
699
699
  }
700
700
  }
701
- startEditCell(col, row) {
701
+ startEditCell(col, row, value) {
702
702
  var _a;
703
703
  if ((0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row)) this.eventManager.isDraging = !1,
704
- this.selectCell(col, row), this.editorManager.startEditCell(col, row); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
704
+ this.selectCell(col, row), this.editorManager.startEditCell(col, row, value); else if (null === (_a = this.stateManager.select) || void 0 === _a ? void 0 : _a.cellPos) {
705
705
  const {col: col, row: row} = this.stateManager.select.cellPos;
706
- (0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row) && this.editorManager.startEditCell(col, row);
706
+ (0, vutils_1.isValid)(col) && (0, vutils_1.isValid)(row) && this.editorManager.startEditCell(col, row, value);
707
707
  }
708
708
  }
709
709
  completeEditCell() {