From 72af269615563fa6067b04233ace120403abf1c8 Mon Sep 17 00:00:00 2001 From: GMrrc <143954951+GMrrc@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:26:04 +0100 Subject: [PATCH] Update ProgressBar.vue --- src/components/ProgressBar.vue | 69 ++++++++++++++++------------------ 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/src/components/ProgressBar.vue b/src/components/ProgressBar.vue index 49d31d8..a665734 100644 --- a/src/components/ProgressBar.vue +++ b/src/components/ProgressBar.vue @@ -1,41 +1,36 @@ - - - - - \ No newline at end of file + color: { + type: String, + default: "bg-blue-500", + }, + }, + computed: { + clampedValue() { + return Math.max(0, Math.min(this.value, 100)); + }, + }, +}; + + + \ No newline at end of file