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(ui): add return type for ComponentContainer function (#4547)
白熱a2cf4bbf94d3
diff --git a/packages/ui/src/views/components/ComponentContainer.tsx b/packages/ui/src/views/components/ComponentContainer.tsxindex 8becbe13c6..a82064c848 100644--- a/packages/ui/src/views/components/ComponentContainer.tsx+++ b/packages/ui/src/views/components/ComponentContainer.tsx@@ -29,7 +29,7 @@ export interface IComponentContainerProps {sharedProps?: Record<string, unknown>;}-export function ComponentContainer(props: IComponentContainerProps) {+export function ComponentContainer(props: IComponentContainerProps): React.ReactNode {const { components, fallback, sharedProps } = props;if (!components || components.size === 0) return fallback ?? null;