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(sheets-formula-ui): formula-editor highlight error (#5303)
ZhangWei3ecfa8acfcb6
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.tsindex 63ce7cc1a5..7d6b1d3461 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-highlight.ts@@ -265,13 +265,12 @@ export function useColor(): IColorMap {themeService.getColorFromTheme('loop-color.10'),themeService.getColorFromTheme('loop-color.11'),themeService.getColorFromTheme('loop-color.12'),- ];+ ].map((e) => e.includes('.') ? themeService.getColorFromTheme(e) : e);const numberColor = themeService.getColorFromTheme('blue.700');const stringColor = themeService.getColorFromTheme('jiqing.800');const plainTextColor = themeService.getColorFromTheme('black');return { formulaRefColors, numberColor, stringColor, plainTextColor };}, [theme]);-return result;}