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.

feat(ui): add unitId props to float-dom component (#4877)

ZhangWeiacc9cbcaf99a
diff --git a/packages/ui/src/views/components/dom/FloatDom.tsx b/packages/ui/src/views/components/dom/FloatDom.tsx
index 39eb49a688..ffc8acc06d 100644
--- a/packages/ui/src/views/components/dom/FloatDom.tsx
+++ b/packages/ui/src/views/components/dom/FloatDom.tsx
@@ -94,7 +94,7 @@ const FloatDomSingle = memo((props: { layer: IFloatDom; id: string }) => {
};
}, [layer.position$, size$]);
- const component = useMemo(() => Component ? <Component {...layerProps} /> : null, [Component, layerProps]);
+ const component = useMemo(() => Component ? <Component {...layerProps} unitId={layer.unitId} /> : null, [Component, layerProps]);
if (!position) {
return null;