ant-design-vue/components/progress/utils.js

9 lines
163 B
JavaScript
Raw Normal View History

2019-04-25 20:23:14 +08:00
export function validProgress(progress) {
if (!progress || progress < 0) {
return 0;
} else if (progress > 100) {
return 100;
}
return progress;
2019-05-28 11:37:38 +08:00
}