Skip to content

Commit

Permalink
fix(Progress): percentage calculation (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsteinwand committed Nov 11, 2023
1 parent 0eb8d8f commit c55871b
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

1 comment on commit c55871b

@vercel
Copy link

@vercel vercel bot commented on c55871b Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxt-js.vercel.app
ui.nuxt.com
ui-git-dev-nuxt-js.vercel.app

Please sign in to comment.