[英]Drag sibling element along with the current element
我處於需要拖動元素及其兄弟元素的情況。 可拖動元素的模式將是
<ContainerDiv>
<Element1 draggable={true} />
<Sibling1 draggable={true} />
<Element2 draggable={true} />
<Sibling2 draggable={true} />
<Element3 draggable={true} />
<Sibling3 draggable={true} />
</ContainerDiv>
我無法更改結構以將元素和兄弟姐妹包裝在一個 div 下。 當用戶拖動element1
時, sibling1
也應該隨之拖動。
這里是沙盒。
文件:
editors.jsx - container
renderWE.jsx - element
renderBlock.jsx - sibling
提前致謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.