vue-free-drag
Version:
基于Vue3的极简拖拽组件。可通过容器设置拖拽范围。
20 lines (16 loc) • 459 B
JavaScript
import DragDropContainer from './DragDropContainer/index.vue'
import DragDrop from './DragDrop/index.vue'
const components = [DragDropContainer, DragDrop];
const install = function (Vue) {
components.forEach((component) => {
Vue.component(component.name, component);
});
};
if (typeof window !== "undefined" && window.Vue) {
install(window.Vue);
}
export default {
install,
DragDropContainer,
DragDrop
};