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.

fix(docs-ui): export command from wrong path (#5115)

ZhangWei4d21b5974fa3
diff --git a/packages/docs-drawing-ui/src/views/printing-float-dom/index.tsx b/packages/docs-drawing-ui/src/views/printing-float-dom/index.tsx
index bbc8933fce..dbaf6d6acc 100644
--- a/packages/docs-drawing-ui/src/views/printing-float-dom/index.tsx
+++ b/packages/docs-drawing-ui/src/views/printing-float-dom/index.tsx
@@ -55,6 +55,7 @@ export const DocPrintingFloatDom = (props: IPrintingFloatDomProps) => {
onPointerUp: () => { },
onWheel: () => { },
unitId: info.unitId,
+ data: info.data,
};
return [info.drawingId, floatDom] as const;
diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.ts
index 6bd5f55b2b..0dfdf573a6 100644
--- a/packages/docs-ui/src/index.ts
+++ b/packages/docs-ui/src/index.ts
@@ -59,7 +59,7 @@ export { whenDocAndEditorFocused } from './shortcuts/utils';
export { DOC_VERTICAL_PADDING } from './types/const/padding';
// #region - all commands
-export { SwitchDocModeCommand } from './commands/commands/switch-doc-mode.command.js';
+export { SwitchDocModeCommand } from './commands/commands/switch-doc-mode.command';
export { HorizontalLineCommand } from './commands/commands/doc-horizontal-line.command';
export { AfterSpaceCommand, EnterCommand, type ITabCommandParams, TabCommand } from './commands/commands/auto-format.command';
export { BreakLineCommand } from './commands/commands/break-line.command';
diff --git a/packages/sheets-drawing-ui/src/views/printing-float-dom/index.tsx b/packages/sheets-drawing-ui/src/views/printing-float-dom/index.tsx
index 9c4b2cd743..23044c73ce 100644
--- a/packages/sheets-drawing-ui/src/views/printing-float-dom/index.tsx
+++ b/packages/sheets-drawing-ui/src/views/printing-float-dom/index.tsx
@@ -70,6 +70,7 @@ export const PrintingFloatDom = (props: IPrintingFloatDomProps) => {
onPointerUp: () => { },
onWheel: () => { },
unitId: info.unitId,
+ data: info.data,
};
return [info.drawingId, floatDom] as const;