feat(events): add dropBottom event

This commit is contained in:
Salvatore Giordano
2019-03-13 09:30:13 +01:00
parent 538678d916
commit 625dadcb44
2 changed files with 4 additions and 1 deletions

View File

@@ -285,8 +285,11 @@
},
dropBottom () {
if (!fromComp) return
const oldParent = fromComp.model.parent;
fromComp.model.insertAfter(this.model)
this.isDragEnterBottom = false
var node = this.getRootNode();
node.$emit('drop', {node: fromComp.model, oldParent: oldParent})
},
getRootNode() {
var node = this.$parent