All Projects → hejianxian → Vddl

hejianxian / Vddl

Licence: mit
🦄 Vue components for modifying lists with the HTML5 drag & drop API.

Projects that are alternatives of or similar to Vddl

Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (-62.65%)
Mutual labels:  drag-and-drop, dnd
Web designer
网页设计器图形化工具,通过拖拽组件进行页面排版和生成页面代码
Stars: ✭ 219 (-46.19%)
Mutual labels:  vue-components, drag-and-drop
React Dragtastic
A simple drag and drop library for React which uses the more stable mouseDown/mouseUp event pattern instead of the problematic HTML5 drag and drop API
Stars: ✭ 181 (-55.53%)
Mutual labels:  drag-and-drop, dnd
React Movable
🔀 Drag and drop for your React lists and tables. Accessible. Tiny.
Stars: ✭ 1,064 (+161.43%)
Mutual labels:  drag-and-drop, dnd
dnd
Beautiful and accessible drag and drop for lists with React.
Stars: ✭ 271 (-33.42%)
Mutual labels:  dnd, drag-and-drop
Muuri
Infinite responsive, sortable, filterable and draggable layouts
Stars: ✭ 9,797 (+2307.13%)
Mutual labels:  drag-and-drop, dnd
Vue Email Editor
Drag-n-Drop Email Editor Component for Vue.js
Stars: ✭ 166 (-59.21%)
Mutual labels:  vue-components, drag-and-drop
Easy Dnd
A drag and drop implementation for Vue.js 2 https://codesandbox.io/s/easy-dnd-demo-9mbij https://codesandbox.io/s/easy-dnd-demo-2-xnqbz
Stars: ✭ 202 (-50.37%)
Mutual labels:  drag-and-drop, dnd
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (-68.8%)
Mutual labels:  drag-and-drop, vue-components
vue3-smooth-dnd
Vue3 wrapper components for smooth-dnd
Stars: ✭ 92 (-77.4%)
Mutual labels:  dnd, drag-and-drop
Bcx Aurelia Dnd
Aurelia Drag and Drop.
Stars: ✭ 20 (-95.09%)
Mutual labels:  drag-and-drop, dnd
dflex
The sophisticated Drag and Drop library you've been waiting for 🥳
Stars: ✭ 806 (+98.03%)
Mutual labels:  dnd, drag-and-drop
React Beautiful Dnd
Beautiful and accessible drag and drop for lists with React
Stars: ✭ 25,810 (+6241.52%)
Mutual labels:  drag-and-drop, dnd
Angular Skyhook
An implementation of react-dnd for Angular.
Stars: ✭ 146 (-64.13%)
Mutual labels:  drag-and-drop, dnd
Smooth Dnd
drag and drop library for javascript
Stars: ✭ 408 (+0.25%)
Mutual labels:  drag-and-drop, dnd
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (-89.93%)
Mutual labels:  dnd, drag-and-drop
slate-react-dnd-plugin
No description or website provided.
Stars: ✭ 35 (-91.4%)
Mutual labels:  dnd, drag-and-drop
react-dnd-treeview
A draggable / droppable React-based treeview component. You can use render props to create each node freely.
Stars: ✭ 207 (-49.14%)
Mutual labels:  dnd, drag-and-drop
Vue Goodshare
🍿 Vue.js component for social share. A simple way to share a link on the pages of your website in the most popular (and not so) social networks. Powered by goodshare.js project.
Stars: ✭ 345 (-15.23%)
Mutual labels:  vue-components
Equal
🧬 Equal is a Vue 3 UI library based on TypeScript
Stars: ✭ 381 (-6.39%)
Mutual labels:  vue-components

vddl

Vue components for modifying lists with the HTML5 drag & drop API.

Travis Status npm

💥Warning💥

    1. Don't set index to the :key, it will cause dragging confusion.
<vddl-list :list="list">
    <vddl-draggable class="panel__body--item" 
      v-for="(item, index) in list" 
      :key="item.id" // It's best to use a unique id. Remember, don't use 'index'.
      ...
      >
      {{item.label}}
    </vddl-draggable>
</vddl-list>
    1. "[Vue warn]: Duplicate keys detected: 'A-1'. This may cause an update error. "

Why is this wrong? Because in Vue.js v2.5.0 version, The nextTick's implementation has changed, specific can see here. The reason for throwing this error is that when the element is dropped onto the list, a duplicate object is inserted into the array. Now I think this can be done for you. Add a drop event to the vddl-list and add a moved event to the vddl-draggable. Then you need to splice the array manually. See the demo source code

Links

Features

  • Supports VueJs versions 1.0 and 2.0
  • Supports all modern browsers and Internet Explorer 9+
  • Supports nested lists for building trees and other fancy structures

Touch devices are not supported, because they do not implement the HTML5 drag & drop standard. However, you can use a shim to make it work on touch devices as well.

Installation

npm install --save vddl

# or
yarn add vddl

Usage

import Vue from 'vue';
import Vddl from 'vddl';

Vue.use(Vddl);

Development

# dev
npm install
npm run watch

# build
npm run build

# run example
cd example && npm install
npm run dev

License

MIT

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].