官网sortablejs.com/ 基于HTML5的拖拽API,零依赖。
1 安装
1.npm
npm **install** sortablejs --save
2.
bower **install** --save sortablejs
3.<script src="../../js/Sortable.min.js"></script>
2.引入和使用
1.引入
import Sortable from 'sortablejs'
2.使用
- new Sortable(参数1=$refs, 参数2=option对象)
- Sortable.create(..)