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: add actualRow and actualColumn to auto fill section (#1050)

Ran Luo0a10595a617d
diff --git a/packages/sheets-ui/src/controllers/auto-fill.controller.ts b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
index c5137291b6..05eb055917 100644
--- a/packages/sheets-ui/src/controllers/auto-fill.controller.ts
+++ b/packages/sheets-ui/src/controllers/auto-fill.controller.ts
@@ -367,6 +367,8 @@ export class AutoFillController extends Disposable {
{
primary: {
...selection,
+ actualRow: selection.startRow,
+ actualColumn: selection.startColumn,
endColumn: selection.startColumn,
endRow: selection.startRow,
},
diff --git a/packages/sheets/src/commands/operations/selection.operation.ts b/packages/sheets/src/commands/operations/selection.operation.ts
index 0874f0958c..4654d729d9 100644
--- a/packages/sheets/src/commands/operations/selection.operation.ts
+++ b/packages/sheets/src/commands/operations/selection.operation.ts
@@ -40,6 +40,7 @@ export const SetSelectionsOperation: IOperation<ISetSelectionsOperationParams> =
const { selections, type } = params;
selectionManagerService.replace(selections, type);
+
return true;
},
};