We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c98a1ee commit dd9c85fCopy full SHA for dd9c85f
src/packages/__VUE/range/index.taro.vue
@@ -272,7 +272,7 @@ export default create({
272
const format = (value: number) => {
273
const { min, max, step } = props
274
value = Math.max(+min, Math.min(value, +max))
275
- return Math.round(value / +step) * +step
+ return Math.round((value - +min) / +step) * +step + +min
276
}
277
278
const isSameValue = (newValue: SliderValue, oldValue: SliderValue) =>
0 commit comments