Update ProgressBar.vue

This commit is contained in:
GMrrc 2024-11-22 17:24:33 +01:00
parent b4107232d8
commit 8a6e41dcd9

View File

@ -17,7 +17,6 @@
value: { value: {
type: Number, type: Number,
required: true, required: true,
validator: (v) => v >= 0 && v <= 100,
}, },
label: { label: {
type: String, type: String,
@ -28,6 +27,11 @@
default: "bg-blue-500", default: "bg-blue-500",
}, },
}, },
computed: {
clampedValue() {
return Math.max(0, Math.min(this.value, 100));
},
},
}; };
</script> </script>