mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
283187761a
close #14332
8 lines
183 B
TypeScript
8 lines
183 B
TypeScript
export function validProgress(progress: number | undefined) {
|
|
if (!progress || progress < 0) {
|
|
return 0;
|
|
} else if (progress > 100) {
|
|
return 100;
|
|
}
|
|
return progress;
|
|
}; |