@v-c/slider 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Handles/Handle.cjs +1 -1
- package/dist/Handles/Handle.js +50 -50
- package/dist/Marks/index.cjs +1 -1
- package/dist/Marks/index.js +23 -22
- package/dist/Slider.cjs +1 -1
- package/dist/Slider.d.ts +39 -12
- package/dist/Slider.js +118 -108
- package/dist/hooks/useDrag.cjs +1 -1
- package/dist/hooks/useDrag.js +39 -39
- package/docs/marks.vue +10 -1
- package/package.json +1 -1
- package/src/Handles/Handle.tsx +1 -4
- package/src/Marks/index.tsx +2 -2
- package/src/Slider.tsx +593 -582
- package/src/hooks/useDrag.ts +0 -1
package/src/hooks/useDrag.ts
CHANGED
|
@@ -120,7 +120,6 @@ function useDrag(
|
|
|
120
120
|
|
|
121
121
|
const onStartMove: OnStartMove = (e, valueIndex, startValues?: number[]) => {
|
|
122
122
|
e.stopPropagation()
|
|
123
|
-
console.log('onStartMove', valueIndex)
|
|
124
123
|
// 如果是点击 track 触发的,需要传入变化后的初始值,而不能直接用 rawValues
|
|
125
124
|
const initialValues = startValues || rawValues.value
|
|
126
125
|
const originValue = initialValues[valueIndex]
|