vue-draggable-resizable拖拽组件以及常用api

安装:

npm install --save vue-draggable-resizable

main.js


import { createApp } from 'vue'
import App from './App.vue'
import VueDraggableResizable from 'vue-draggable-resizable/src/components/vue-draggable-resizable.vue'
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
const app = createApp(App);
app.component('vue-draggable-resizable', VueDraggableResizable)
app.mount("#app");

使用: