Skip to content

draggable ​

关键属性 ​

draggable: boolean | 'x' | 'y' ​

是否允许拖拽, 可锁定在 x 或 y 轴移动, 默认为 false。

dragBounds?: IBoundsData | 'parent' ​

限制元素在指定范围内拖动,'parent'表示限制在父对象(Box/Frame 元素) 中拖动。

归属 ​

UI ​

Released under the MIT License.