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
feat: add float dom id to Comp (#4886)
YuHonga17a0419e3fb
diff --git a/packages/ui/src/views/components/dom/FloatDom.tsx b/packages/ui/src/views/components/dom/FloatDom.tsxindex ffc8acc06d..6b6f381853 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} unitId={layer.unitId} /> : null, [Component, layerProps]);+ const component = useMemo(() => Component ? <Component {...layerProps} unitId={layer.unitId} floatDomId={layer.id} /> : null, [Component, layerProps]);if (!position) {return null;