Transform vue-grid-layout of vue2 with vue3 syntax

Vue3-grid-layout

Recently, due to business needs, a drag-and-drop grid layout is required, and it supports vue3.
I found a vue-grid-layout of vue2 on the Internet, and transformed it into vue3 on this basis

The warehouse of git after transformation

The git address https://github.com/xhlife/vue3-grid-layou
currently has no problems testing drag and zoom, welcome to modify and raise bugs

major modification

eventBusModification

Vue3 cannot directly use new Vue() as eventBus like vue2, and introduce mitt

Modification of the hook function

Effect

insert image description here

Guess you like

Origin blog.csdn.net/qq_40441489/article/details/107795960