Skip to content

Commit

Permalink
<fix>[UProgress]: percentage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsteinwand authored Nov 10, 2023
1 parent 6f0bfb5 commit b7798a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Progress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default defineComponent({
const percent = computed(() => {
switch (true) {
case props.value < 0: return 0
case props.value > 100: return 100
case props.value > realMax.value: return 100
default: return (props.value / realMax.value) * 100
}
})
Expand Down

0 comments on commit b7798a8

Please sign in to comment.