fix(core): some dnd perf issues (#9661)

1. page list item are bound two draggables. adding `draggable` prop to WorkbenchLink to mitigate the issue.
2. DndService may not resolve datatransfer when dragging.
This commit is contained in:
pengx17
2025-01-15 15:04:01 +00:00
parent b1896746f9
commit 0ed9258f51
5 changed files with 89 additions and 73 deletions
@@ -382,7 +382,7 @@ const PageListItemWrapper = forwardRef(
if (to) {
return (
<WorkbenchLink ref={ref} {...commonProps} to={to}>
<WorkbenchLink ref={ref} draggable={false} {...commonProps} to={to}>
{children}
</WorkbenchLink>
);