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(ui): fix canvas popup direction definition error

Wenzhao Hu069069759ceb
diff --git a/packages/design/src/components/popup/RectPopup.tsx b/packages/design/src/components/popup/RectPopup.tsx
index aec11b8485..272402bb41 100644
--- a/packages/design/src/components/popup/RectPopup.tsx
+++ b/packages/design/src/components/popup/RectPopup.tsx
@@ -35,7 +35,7 @@ export interface IRectPopupProps {
*/
anchorRect: IAbsolutePosition;
- direction?: 'vertical' | 'horizontal' | 'left' | 'top' | 'left' | 'bottom';
+ direction?: 'vertical' | 'horizontal' | 'left' | 'top' | 'right' | 'left' | 'bottom';
// #region closing behavior