Merge pull request #704 from RickCole21/master

修复range value为0时,自动转为最小值的问题
This commit is contained in:
liaoxuezhi 2020-06-18 10:38:07 +08:00 committed by GitHub
commit 17c81f339c

View File

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