Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat(facade): sheet api getId rename to getSheetId (#1770)
#FF0000dff654c156f8
diff --git a/packages/facade/src/apis/__tests__/facade.spec.ts b/packages/facade/src/apis/__tests__/facade.spec.tsindex ab995bcd12..7387222a3d 100644--- a/packages/facade/src/apis/__tests__/facade.spec.ts+++ b/packages/facade/src/apis/__tests__/facade.spec.ts@@ -211,6 +211,6 @@ describe('Test FUniver', () => {it('Function getSheetBySheetId', () => {const worksheet = univerAPI.getActiveWorkbook()?.getSheetBySheetId('sheet1');- expect(worksheet!.getId()).toBe('sheet1');+ expect(worksheet!.getSheetId()).toBe('sheet1');});});diff --git a/packages/facade/src/apis/sheets/f-worksheet.ts b/packages/facade/src/apis/sheets/f-worksheet.tsindex bfecfebf5b..dd538828e0 100644--- a/packages/facade/src/apis/sheets/f-worksheet.ts+++ b/packages/facade/src/apis/sheets/f-worksheet.ts@@ -31,7 +31,11 @@ export class FWorksheet {@ICommandService private readonly _commandService: ICommandService) {}- getId(): string {+ /**+ * Returns the worksheet id+ * @returns sheet id+ */+ getSheetId(): string {return this._worksheet.getSheetId();}