Skip to content

Commit ea7caaa

Browse files
committed
refactor: slider
1 parent c6189f2 commit ea7caaa

File tree

1 file changed

+1
-0
lines changed
  • packages/mpx-cube-ui/src/components/slider

1 file changed

+1
-0
lines changed

packages/mpx-cube-ui/src/components/slider/slider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ createComponent({
219219
},
220220
async onClick(e) {
221221
const rect = await this.getRect()
222+
this.startDragRect = rect
222223
this.calcProgress(e.detail.x, rect)
223224
// 完成一次拖动后触发的事件
224225
// @arg event.detail = {value}

0 commit comments

Comments
 (0)