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(sheet): sheet fix

DR-Univer596bafb579f8
diff --git a/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts b/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
index 1f27d0917a..16cf1f1578 100644
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
@@ -1,4 +1,4 @@
-import { ColumnSeparatorType, IBullet, IDrawing, IDrawings, IParagraph, Nullable, ParagraphElementType, PositionedObjectLayoutType, ContextBase, IElement } from '@univer/core';
+import { ColumnSeparatorType, IBullet, IDrawing, IDrawings, IParagraph, Nullable, ParagraphElementType, PositionedObjectLayoutType, ContextBase, IElement } from '@univerjs/core';
import { dealWidthTextRun } from './TextRun';
import { dealWidthBullet } from './Bullet';
import { dealWidthInlineDrawing } from './InlineDrawing';
@@ -107,7 +107,6 @@ export function dealWidthParagraph(
const { eId: elementId, et: paragraphElementType } = element;
let currentPages: IDocumentSkeletonPage[] = [];
if (paragraphElementType === ParagraphElementType.TEXT_RUN) {
- const element = elements[elementId];
const { tr: textRun, st, ed } = element;
if (!textRun) {
return false;
diff --git a/packages/base-ui/src/Helpers/Cell.ts b/packages/base-ui/src/Helpers/Cell.ts
index 593106853e..ef7018068a 100644
--- a/packages/base-ui/src/Helpers/Cell.ts
+++ b/packages/base-ui/src/Helpers/Cell.ts
@@ -1,5 +1,5 @@
-import { BlockType, ICellData, IDocumentData, IElement, IRangeData, IStyleData, ITextDecoration, Tools } from '@univer/core';
-import { pxToPt } from '@univer/base-render';
+import { BlockType, ICellData, IDocumentData, IElement, IRangeData, IStyleData, ITextDecoration, Tools } from '@univerjs/core';
+import { pxToPt } from '@univerjs/base-render';
import { textTrim } from '../Utils';
// TODO: move to Utils