单位:ms,定义排序动画的时间;
Class name for the chosen item 所选项目的类名, 格式为简单css选择器的字符串,当选中列表单元时会给该单元增加一个class 默认值 sortable-chosen
绑定的组件
默认值:"data-id"
定义鼠标选中列表单元可以开始拖动的延迟时间;
Only delay if user is using touch 仅当用户使用触摸时才会延迟
Direction of Sortable (will be detected automatically if not given) 拖拽方向 (默认情况下会自动判断方向)
义是否此sortable对象是否可用,为true时sortable对象不能拖放排序等功能,为false时为可以进行排序,相当于一个开关; 默认值 false
正在被拖拽中的css类名 默认值 "sortable-drag"
允许拖拽的项目类名 默认值:>* 指定元素中的哪些项目应该是可拖动的
Easing for animation. Defaults to null. 移动动画。默认为 null。例如 https://easings.net/。
See https://easings.net/ for examples.
For other possible values, see https://www.w3schools.com/cssref/css3_pr_animation-timing-function.asp
distance mouse must be from empty sortable to insert drag element into it 距离鼠标必须从空的可排序插入拖动元素到它
Class name for the cloned DOM Element when using forceFallback 使用 forceFallback 时克隆的 DOM 元素的类名
Appends the cloned DOM Element into the Document's Body 将克隆的 DOM 元素附加到文档正文中 默认值:false
以像素为单位指定鼠标在被视为拖动之前应移动的距离。 默认值:0
Selectors that do not lead to dragging (String or Function) 过滤器,不需要进行拖动的元素
ignore the HTML5 DnD behaviour and force the fallback to kick in 忽略 HTML5拖拽行为,强制回调进行
Class name for the drop placeholder 默认值:sortable-ghost 放置占位符的类名
To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements. 拖拽的组
Drag handle selector within list items 格式为简单css选择器的字符串,使列表单元中符合选择器的元素成为拖动的,只有按住拖动手柄才能使列表单元进行拖动 如: .drag-mc-pane
忽略的节点tag 默认值 "a, img"
Will always use inverted swap zone if set to true 默认值 false 如果设置为 true,将始终使用反转交换区域
Threshold of the inverted swap zone
(will be set to swapThreshold
value by default)
反向交换区域的阈值 (默认情况下将设置为交换阈值)
Element is dropped into the list from another list 元素从一个列表拖拽到另一个列表
Called when dragging element changes position 拖拽元素改变位置的时候
Element is chosen 元素被选中
Created a clone of an element clone一个元素的时候触发
Element dragging ended 结束拖拽
Attempt to drag a filtered element 试图拖拽一个filtered的元素
Event when you move an item in the list or between lists 拖拽移动的时候
Element is removed from the list into another list 元素从列表中移除进入另一个列表
Called by any change to the list (add / update / remove)
Element dragging started 开始拖拽的时候事件
Element is unchosen 元素未被选中的时候(从选中到未选中)
Changed sorting within list
页面组件实例
Call event.preventDefault()
when triggered filter
触发 “过滤” 时调用 “事件.预防性默认 ()”
Remove the clone element when it is not showing, rather than just hiding it 当克隆元素没有显示时,删除它,而不仅仅是隐藏它 默认值 true
拖拽时候的数据传输函数
sorting inside list 默认值 true
是否支持触控
Threshold of the swap zone. 默认值 1
How many pixels the point should move before cancelling a delayed drag event 拖拽事件在多少像素时候取消
Generated using TypeDoc
组件拖拽选项