如何将 vuedraggable 元素克隆到其兄弟的嵌套子列表中?

how to clone an vuedraggable element into its sibling's nested children list?

https://codesandbox.io/s/fervent-oskar-shqtp?file=/src/components/nested-draggable.vue

pull 操作工作正常,但是当我将 pull prop 从 'true' 更改为 'clone' 时,出现错误。

NotFoundError Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

在群组道具中将另一个道具 'revertClone' 设置为 true 解决了问题。

<draggable :group="{ name: 'g1', pull: 'clone', revertClone: true }"></draggable>