Skip to content

Drag 拖拽

拖拽指令用于实现元素的拖拽功能,支持限制拖拽方向和边界。

基本使用

loading

API

参数

参数名说明类型默认值
axis拖拽方向,可选 'x'、'y' 或 'both'string'both'
boundary拖拽边界限制object-
boundary.left左边界number-
boundary.right右边界number-
boundary.top上边界number-
boundary.bottom下边界number-

基于 MIT 许可发布