propapier/app/components/Pp/PriceCard.vue
webfussel 878b7e06e8 fix: min and max values of PriceCards
min default of 1, max default of undefined for infinite
2025-02-10 21:26:50 +01:00

21 lines
624 B
Vue

<template>
<form class="PriceCard">
<div class="wrapper">
<PpFormInput label="Name" id="n" :uid="uid" type="text" />
<PpFormInput label="Preis" id="p" :uid="uid" type="number" :min="0.01" />
</div>
<div class="wrapper">
<PpFormInput label="Rollen" id="r" :uid="uid" type="number" :max="150" />
<PpFormInput label="Blätter" id="b" :uid="uid" type="number" :max="500" />
<PpFormInput label="Lagen" id="l" :uid="uid" type="number" :max="10" />
</div>
</form>
</template>
<script setup lang="ts">
type Props = {
uid: number
}
const { uid } = defineProps<Props>()
</script>