vue3-dragable-grid-layout icon indicating copy to clipboard operation
vue3-dragable-grid-layout copied to clipboard

Allow drag and drop from outside.

Open marcelo-rebello opened this issue 2 years ago • 4 comments

We currently cannot drag and drop an item from outside the grid. The reason for this is that the dragEvent method is not public. (see https://github.com/melrose13-69/vue3-dragable-grid-layout/issues/5)

The fix is easy. just have to add this bit of code anywhere in the setup of 'GridLayoutVue`

defineExpose({ dragEvent })

a nice place to add this bit is https://github.com/melrose13-69/vue3-dragable-grid-layout/blob/13711c87691cbc5c9b793f1bab90ab857e79a158/packages/vue3-drr-grid-layout/src/components/GridLayout/GridLayout.vue#L472

marcelo-rebello avatar Oct 27 '22 00:10 marcelo-rebello

i also meet this problem ,please expose ”dragEvent“ to GridLayout Ref

donkeylmx avatar Nov 04 '22 20:11 donkeylmx

mark, please call me when issues closed, thk

web-zhangbo avatar Feb 13 '23 09:02 web-zhangbo