表格拖动插件(Sortable || vuedraggable)
表格拖动插件
封装的表格table,想要拖动每一行,用Sortable
import Sortable from 'sortablejs';
// 下方此处得放在挂载后
Sortable.create(ele, {
disabled: false,
ghostClass: 'sortable-ghost', // 样式
animation: 450, // 动画时间
handle: '.mover', // 绑定可拖动的元
原创
2021-05-13 18:36:16 ·
518 阅读 ·
0 评论