From 700ea8098e694f6044949c40311af4f8750beb04 Mon Sep 17 00:00:00 2001 From: David19910306 <30644189+David19910306@users.noreply.github.com> Date: Wed, 31 Aug 2022 19:14:15 +0800 Subject: [PATCH] Update Example10DragFromOutside.vue --- .../docs/.vuepress/components/Example10DragFromOutside.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/docs/.vuepress/components/Example10DragFromOutside.vue b/website/docs/.vuepress/components/Example10DragFromOutside.vue index 3fe1f2f2..deb33ecc 100644 --- a/website/docs/.vuepress/components/Example10DragFromOutside.vue +++ b/website/docs/.vuepress/components/Example10DragFromOutside.vue @@ -117,12 +117,12 @@ export default { mouseInGrid = true; } if (mouseInGrid === true) { - alert(`Dropped element props:\n${JSON.stringify(DragPos, ['x', 'y', 'w', 'h'], 2)}`); + // alert(`Dropped element props:\n${JSON.stringify(DragPos, ['x', 'y', 'w', 'h'], 2)}`); this.$refs.gridlayout.dragEvent('dragend', 'drop', DragPos.x, DragPos.y, 1, 1); this.layout = this.layout.filter(obj => obj.i !== 'drop'); // UNCOMMENT below if you want to add a grid-item - /* + this.layout.push({ x: DragPos.x, y: DragPos.y, @@ -135,7 +135,6 @@ export default { this.$refs.gridLayout.$children[this.layout.length].$refs.item.style.display="block"; } catch { } - */ } }, }