diff --git a/src/plugins/flexibleLayout/components/container.vue b/src/plugins/flexibleLayout/components/container.vue index a5af34fcda..7ddda1c2fb 100644 --- a/src/plugins/flexibleLayout/components/container.vue +++ b/src/plugins/flexibleLayout/components/container.vue @@ -35,7 +35,7 @@ class="c-fl-frame__drop-hint" :index="-1" :allow-drop="allowDrop" - @object-drop-to="moveOrCreateFrame"> + @object-drop-to="moveOrCreateNewFrame">
@@ -55,7 +55,7 @@ :key="i" :index="i" :allowDrop="allowDrop" - @object-drop-to="moveOrCreateFrame"> + @object-drop-to="moveOrCreateNewFrame">
@@ -71,10 +72,12 @@ export default { mounted() { document.addEventListener('dragstart', this.dragstart); document.addEventListener('dragend', this.dragend); + document.addEventListener('drop', this.dragend); }, destroyed() { document.removeEventListener('dragstart', this.dragstart); document.removeEventListener('dragend', this.dragend); + document.removeEventListener('drop', this.dragend); } } diff --git a/src/plugins/flexibleLayout/components/flexibleLayout.vue b/src/plugins/flexibleLayout/components/flexibleLayout.vue index 9a2ee5b9c6..560b555903 100644 --- a/src/plugins/flexibleLayout/components/flexibleLayout.vue +++ b/src/plugins/flexibleLayout/components/flexibleLayout.vue @@ -22,6 +22,11 @@