项目作者: supraniti

项目描述 :
vue.js plugin for drag and drop functionality
高级语言: JavaScript
项目地址: git://github.com/supraniti/vue-dnd-zone.git
创建时间: 2021-02-23T15:07:23Z
项目社区:https://github.com/supraniti/vue-dnd-zone

开源协议:MIT License

下载


vue-dnd-zone

Drag And Drop functionality for Vue.js - written in Vue.js

vue-dnd-zone is a vue.js plugin for drag and drop functionality.
It is not a wrapper for an external js library, but a set of vue components managing the drag and drop event and data model state

Examples, Demo, API:

https://supraniti.github.io/vue-dnd-zone/

Features

  • Smooth transitions
  • Auto scroll while dragging
  • Supports nested structures
  • Lightweight (~4kb gzipped)
  • Supports touch events

Installation

  1. npm install vue-dnd-zone
  1. //main.js
  2. import VueDndZone from 'vue-dnd-zone'
  3. import 'vue-dnd-zone/vue-dnd-zone.css'

Usage

  1. <dnd-zone>
  2. <dnd-container>
  3. <dnd-item>
  4. <!-- item markup goes here -->
  5. </dnd-item>
  6. </dnd-container>
  7. </dnd-zone>

Development

vue-dnd-zone is currently in a POC (proof of concept) state,
Further development can and will be done, but it might take a while :-)
If you want to support its progress, star the repository on github

License

MIT