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: interface (#745)

YuHong9933b4fb9d02
diff --git a/packages/sheets-ui/src/controllers/selection.controller.ts b/packages/sheets-ui/src/controllers/selection.controller.ts
index 33d9d213c6..251cb5b83f 100644
--- a/packages/sheets-ui/src/controllers/selection.controller.ts
+++ b/packages/sheets-ui/src/controllers/selection.controller.ts
@@ -237,7 +237,7 @@ export class SelectionController extends Disposable {
this._commandService.executeCommand(SetSelectionsOperation.id, {
unitId,
- sheetId,
+ subUnitId: sheetId,
type,
pluginName: current?.pluginName || NORMAL_SELECTION_PLUGIN_NAME,
selections: selectionDataWithStyleList.map((selectionDataWithStyle) =>
diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.ts
index f92dbd3bab..21c3fe42f0 100644
--- a/packages/sheets-ui/src/index.ts
+++ b/packages/sheets-ui/src/index.ts
@@ -24,6 +24,7 @@ export { SetCellEditVisibleArrowOperation } from './commands/operations/cell-edi
export { SetScrollOperation } from './commands/operations/scroll.operation';
export { SetEditorResizeOperation } from './commands/operations/set-editor-resize.operation';
export { SetZoomRatioOperation } from './commands/operations/set-zoom-ratio.operation';
+export { VIEWPORT_KEY } from './common/keys';
export { RangeSelector } from './components/range-selector/RangeSelector';
export { AutoFillController } from './controllers/auto-fill.controller';
export { PASTE_SPECIAL_MENU_ID } from './controllers/menu/menu';