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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: menu icons would not change when text rotation is vertical (#783)
白熱cc2d7ab52299
diff --git a/packages/sheets-ui/src/controllers/menu/menu.ts b/packages/sheets-ui/src/controllers/menu/menu.tsindex e19c072720..2c3c63d851 100644--- a/packages/sheets-ui/src/controllers/menu/menu.ts+++ b/packages/sheets-ui/src/controllers/menu/menu.ts@@ -15,6 +15,7 @@*/import {+ BooleanNumber,FontItalic,FontWeight,HorizontalAlign,@@ -926,7 +927,11 @@ export function TextRotateMenuItemFactory(accessor: IAccessor): IMenuSelectorItetr = range?.getTextRotation();}- subscriber.next((tr && tr.a) ?? 0);+ if (tr?.v === BooleanNumber.TRUE) {+ subscriber.next('v');+ } else {+ subscriber.next((tr && tr.a) ?? 0);+ }});subscriber.next(0);