Update ProgressBar.vue
This commit is contained in:
		@@ -17,7 +17,6 @@
 | 
			
		||||
      value: {
 | 
			
		||||
        type: Number,
 | 
			
		||||
        required: true,
 | 
			
		||||
        validator: (v) => v >= 0 && v <= 100,
 | 
			
		||||
      },
 | 
			
		||||
      label: {
 | 
			
		||||
        type: String,
 | 
			
		||||
@@ -28,6 +27,11 @@
 | 
			
		||||
        default: "bg-blue-500",
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
    computed: {
 | 
			
		||||
      clampedValue() {
 | 
			
		||||
        return Math.max(0, Math.min(this.value, 100));
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  };
 | 
			
		||||
  </script>
 | 
			
		||||
  
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user