Skip to content

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.

feat(core): export property to get unit name

Wenzhao Hue40bb285a8fe
diff --git a/packages/core/src/sheets/workbook.ts b/packages/core/src/sheets/workbook.ts
index 28fbd00070..8e11e5f4c9 100644
--- a/packages/core/src/sheets/workbook.ts
+++ b/packages/core/src/sheets/workbook.ts
@@ -76,6 +76,10 @@ export class Workbook extends Disposable {
private _count: number;
+ get name(): string {
+ return this._snapshot.name;
+ }
+
constructor(
workbookData: Partial<IWorkbookData> = {},
@ILogService private readonly _log: ILogService