修复range value为0时,自动转为最小值的问题

This commit is contained in:
rickcole 2020-06-18 10:23:37 +08:00
parent 257e3a972a
commit 94531dd418

View File

@ -68,7 +68,7 @@ export function formatValue(
};
}
}
return value || props.min;
return value ?? props.min;
}
type PropsWithDefaults = RangeProps & DefaultProps;