fix: min and max values of PriceCards
min default of 1, max default of undefined for infinite
This commit is contained in:
parent
72aaf5174d
commit
878b7e06e8
2 changed files with 8 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue