mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Progress): percentage calculation (#939)
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user