1

我想在同一行或不同行之间拖动项目行以及项目本身。它一直有效,直到我尝试移动一行的最后一项,然后导致错误。

jsfiddle: https ://jsfiddle.net/lexixon/nf97erqx/64/

错误:

Uncaught TypeError: Cannot read property 'element' of null
    at VueComponent.onDragStart (vuedraggable.js:380)
    at mt.<anonymous> (vuedraggable.js:37)
    at Ct (Sortable.min.js:3)
    at mt._dragStarted (Sortable.min.js:3)

Uncaught TypeError: Cannot read property 'index' of null
    at VueComponent.onDragRemove (vuedraggable.js:403)
    at mt.<anonymous> (vuedraggable.js:37)
    at Ct (Sortable.min.js:3)
    at mt._onDrop (Sortable.min.js:3)
    at mt.handleEvent (Sortable.min.js:3)
4

0 回答 0