refactor(components): [slider] remove useless code (#11681)

This commit is contained in:
童欧巴
2023-02-22 19:21:52 +08:00
committed by GitHub
parent c1068870e3
commit f9d4c8c083

View File

@@ -32,7 +32,6 @@ export const useWatch = (
const setValues = () => {
if (props.min > props.max) {
throwError('Slider', 'min should not be greater than max.')
return
}
const val = props.modelValue
if (props.range && Array.isArray(val)) {