All Projects → mizuka-wu → el-table-draggable

mizuka-wu / el-table-draggable

Licence: MIT license
让element-ui的table可拖动排序,支持 行,列,跨表格等特性

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to el-table-draggable

React Dragline
🐼Guide lines and magnetic adsorption to better align draggable elements in React.
Stars: ✭ 134 (+97.06%)
Mutual labels:  drag-and-drop, drag, draggable
vite-vue3-lowcode
vue3.x + vite2.x + vant + element-plus H5移动端低代码平台 lowcode 可视化拖拽 可视化编辑器 visual editor 类似易企秀的H5制作、建站工具、可视化搭建工具
Stars: ✭ 1,309 (+1825%)
Mutual labels:  drag-and-drop, draggable, element-ui
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (-39.71%)
Mutual labels:  drag-and-drop, drag, draggable
Smooth Dnd
drag and drop library for javascript
Stars: ✭ 408 (+500%)
Mutual labels:  drag-and-drop, drag, draggable
Vue Smooth Dnd
Vue wrapper components for smooth-dnd
Stars: ✭ 1,121 (+1548.53%)
Mutual labels:  drag-and-drop, drag, draggable
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+34666.18%)
Mutual labels:  drag-and-drop, drag, draggable
Dnd Kit
A modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
Stars: ✭ 3,456 (+4982.35%)
Mutual labels:  drag-and-drop, drag, draggable
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (+2194.12%)
Mutual labels:  drag-and-drop, drag, draggable
Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (+123.53%)
Mutual labels:  drag-and-drop, drag, draggable
dnd
Beautiful and accessible drag and drop for lists with React.
Stars: ✭ 271 (+298.53%)
Mutual labels:  drag-and-drop, drag
DragDropiOS
DragDropiOS is a drag and drop manager on iOS. It supports drag and drop with in one or more classes extends UIView. This library contains UICollectionView and UITableView that implenment of drag and drop manager.
Stars: ✭ 71 (+4.41%)
Mutual labels:  drag-and-drop, drag
aarbac
An Automated Role Based Access Control .NET framework with T-SQL Query Parser which automatically parse select, insert, update, delete queries based on the logged in user role
Stars: ✭ 18 (-73.53%)
Mutual labels:  row, column
FlutterBoardView
BoardView written for the flutter framework.
Stars: ✭ 82 (+20.59%)
Mutual labels:  drag-and-drop, draggable
solid-dnd
A lightweight, performant, extensible drag and drop toolkit for Solid JS.
Stars: ✭ 251 (+269.12%)
Mutual labels:  drag-and-drop, drag
Draggable
The JavaScript Drag & Drop library your grandparents warned you about.
Stars: ✭ 15,671 (+22945.59%)
Mutual labels:  drag-and-drop, draggable
vue2-data-tree
A tree that data is lazy loaded. Support dragging node, checking node, editing node's name and selecting node.
Stars: ✭ 41 (-39.71%)
Mutual labels:  drag, draggable
draggable-polyfill
🌈a beautify polyfill for native drag!
Stars: ✭ 49 (-27.94%)
Mutual labels:  drag, draggable
Piper
A drag-and-drop mobile website builder base on Vue
Stars: ✭ 228 (+235.29%)
Mutual labels:  drag-and-drop, drag
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-75%)
Mutual labels:  drag-and-drop, drag
drag-to-close
Android library that provides a view group which allows to finish an activity by dragging a view.
Stars: ✭ 69 (+1.47%)
Mutual labels:  drag, draggable

el-table-draggable

中文文档

Let el-table support sortable.js

Demo Page

Features

  • support almost all options in sortablejs
  • support drag from one to another table
  • support treeTable
  • support vetur
  • support onMove
  • support drag into an empty el-table

You can see in Demos

  • Drag rows
  • Drag columns(>1.1.0)
  • Drag tree(>1.2.0)
  • disable move by set onMove(>1.3.0)
  • Set handle for drag
  • Set group
  • ...other option in sortable.js
  • event input, after the change of all

Install

use npm or yarn

yarn add el-table-draggable

npm i -S el-table-draggable

Usage

import ElTableDraggable from "el-table-draggable";

export default {
  components: {
    ElTableDraggable,
  },
};

template

<template>
  <el-table-draggable>
    <el-table row-key></el-table>
  </el-table-draggable>
</template>

props

tag

the wrapper tag of el-table, default is div

column

support drag column

onMove

set onMove callback

onMove: function (/**Event*/evt, /**Event*/originalEvent, domInfo) {
   // Example: https://jsbin.com/nawahef/edit?js,output
   evt.dragged; // dragged HTMLElement
   evt.draggedRect; // DOMRect {left, top, right, bottom}
   evt.related; // HTMLElement on which have guided
   evt.relatedRect; // DOMRect
   evt.willInsertAfter; // Boolean that is true if Sortable will insert drag element after target by default
   originalEvent.clientY; // mouse position
   
   domInfo.dragged // the origin dom info of dragged tr, like parent domInfo, level, data, and it's index
   domInfo.related // like dragged
   
   // return false; — for cancel
   // return -1; — insert before target
   // return 1; — insert after target
},

other

sortablejs's option

Event

input

data or cloumn after change

other

sortablejs's option, the option start with on, ExampleonSort => @sort

todo

  • Tree Table

Donation

By me a coffee

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].