@taocompany/magic-grid 0.10.4 → 0.10.5
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/dist/core/api/gridApi.d.ts +7 -0
- package/dist/core/api/gridApi.d.ts.map +1 -1
- package/dist/core/grid/cellEditing/gridCellEditing.d.ts +7 -0
- package/dist/core/grid/cellEditing/gridCellEditing.d.ts.map +1 -1
- package/dist/core/grid/grid.d.ts +2 -0
- package/dist/core/grid/grid.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -0
- package/dist/index.es.js.map +1 -1
- package/dist/types/core.d.ts +7 -0
- package/package.json +1 -1
package/dist/types/core.d.ts
CHANGED
|
@@ -1952,6 +1952,13 @@ export declare interface GridApi extends RowMutationGridApi {
|
|
|
1952
1952
|
* @returns 异步提交完成时 resolve;无编辑态时立即 resolve
|
|
1953
1953
|
*/
|
|
1954
1954
|
stopEditing(cancel?: boolean): Promise<void>;
|
|
1955
|
+
/**
|
|
1956
|
+
* 提交或撤销当前编辑内容。
|
|
1957
|
+
*
|
|
1958
|
+
* @param cancel `true` 撤销正在编辑的单元格 / 行内容;`false`(默认)先提交未提交的内容(含 overlay 与 inflight inline commit),再返回
|
|
1959
|
+
* @returns 提交是否成功;撤销时返回撤销是否完成;无编辑态时 `true`
|
|
1960
|
+
*/
|
|
1961
|
+
commit(cancel?: boolean): Promise<boolean>;
|
|
1955
1962
|
/** 是否存在任意单元格 / 行处于编辑态。 */
|
|
1956
1963
|
isEditing(): boolean;
|
|
1957
1964
|
/** 是否正在异步提交(commit 管线进行中)。提交期间 Tab 导航等行为受限。 */
|