11/* eslint-disable curly */
2- import SmoothDnD , { dropHandlers } from 'smooth-dnd'
2+ import { smoothDnD , dropHandlers } from 'smooth-dnd'
33import { getTagProps , validateTagProp } from './utils'
44
5- SmoothDnD . dropHandler = dropHandlers . reactDropHandler ( ) . handler
6- SmoothDnD . wrapChild = p => p // don't wrap children they will already be wrapped
5+ smoothDnD . dropHandler = dropHandlers . reactDropHandler ( ) . handler
6+ smoothDnD . wrapChild = false
77
88const mapOptions = context => {
99 const props = Object . assign ( { } , context . $props , context . $listeners )
@@ -54,7 +54,7 @@ const mapOptions = context => {
5454 context . $emit ( 'drag-leave' )
5555 }
5656 }
57- if ( props . getGhostParent ) options . getGhostParent = props . getGhostParent ;
57+ if ( props . getGhostParent ) options . getGhostParent = props . getGhostParent
5858
5959 if ( props [ 'drop-ready' ] ) {
6060 options . onDropReady = dropResult => {
@@ -68,7 +68,7 @@ export default {
6868 name : 'Container' ,
6969 mounted ( ) {
7070 this . containerElement = this . $refs . container || this . $el
71- this . container = SmoothDnD ( this . containerElement , mapOptions ( this ) )
71+ this . container = smoothDnD ( this . containerElement , mapOptions ( this ) )
7272 } ,
7373 updated ( ) {
7474 if (
@@ -79,7 +79,7 @@ export default {
7979 this . container . dispose ( )
8080 }
8181 this . containerElement = this . $refs . container || this . $el
82- this . container = SmoothDnD ( this . containerElement , mapOptions ( this ) )
82+ this . container = smoothDnD ( this . containerElement , mapOptions ( this ) )
8383 }
8484 } ,
8585 destroyed ( ) {
0 commit comments