mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
9 lines
163 B
JavaScript
9 lines
163 B
JavaScript
export function validProgress(progress) {
|
|
if (!progress || progress < 0) {
|
|
return 0;
|
|
} else if (progress > 100) {
|
|
return 100;
|
|
}
|
|
return progress;
|
|
}
|