fix: min and max values of PriceCards

min default of 1, max default of undefined for infinite
This commit is contained in:
Fiona Lena Urban 2025-02-10 21:26:50 +01:00
parent 72aaf5174d
commit 878b7e06e8
2 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<template>
<div class="Input">
<input :type="type" :id="makeId()" placeholder=" " min="1" :max="max" />
<input :type="type" :id="makeId()" placeholder=" " :min="min" :max="max" />
<label :for="makeId()">{{ label }}</label>
</div>
</template>
@ -9,6 +9,7 @@
type Props = {
type ?: 'text' | 'number'
max ?: number
min ?: number
label : string
id : string
uid : number
@ -16,7 +17,8 @@ type Props = {
const {
type = 'text',
max = 10,
min = 1,
max,
label,
id,
uid,