feat(events): emit drop and dropup events

This commit is contained in:
Salvatore Giordano
2019-03-12 15:20:52 +01:00
parent 106708217f
commit 76e67c583c
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -245,6 +245,8 @@
if (!fromComp) return
fromComp.model.moveInto(this.model)
this.isDragEnterNode = false
var node = this.getRootNode();
node.$emit('drop', fromComp.model)
},
dragEnterUp () {
@@ -263,6 +265,8 @@
if (!fromComp) return
fromComp.model.insertBefore(this.model)
this.isDragEnterUp = false
var node = this.getRootNode();
node.$emit('dropup', fromComp.model)
},
dragEnterBottom () {