1.15.1 • Published 9 months ago
sortablejs-stiffghost v1.15.1
sortablejs-stiffghost
sortablejs-stiffghost 是sortablejs的分支,仅增加stiffGhost
参数,其他用法请参考官方文档
Getting Started
Install with NPM:
npm i sortablejs-stiffghost
Import into your project:
import SortableStiffghost from 'sortablejs-stiffghost';
Usage
<ul id="items">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
var el = document.getElementById('items');
new SortableStiffghost.create(el, {
stiffGhost: true,
forceFallback: true, // 这个参数必须要
});