拖拽时更新

示例

想直接查看实现方式?请参考以下示例:

以下 API 描述了如何使用 update-on-drag 功能。

配置项

onDrag

ts
onDrag: (instance: Ranger<TTrackElement>) => void
onDrag: (instance: Ranger<TTrackElement>) => void

当拖动操作手柄 (handle) 时触发的回调函数

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.