fix(eta-calculator): clamp inputs (#249)

This commit is contained in:
marvin-j97 2022-08-03 08:37:00 +02:00 committed by Corentin Thomasset
parent 77b5b0cab5
commit 531a25c1c4
No known key found for this signature in database
GPG key ID: 3103EB5E79496F9C

View file

@ -11,7 +11,7 @@
<div>
<n-space item-style="flex:1 1 0">
<n-form-item label="Amount of element to consume">
<n-input-number v-model:value="unitCount" />
<n-input-number v-model:value="unitCount" :min="1" />
</n-form-item>
<n-form-item label="The consumption started at">
<n-date-picker v-model:value="startedAt" type="datetime" />
@ -19,10 +19,10 @@
</n-space>
<n-form-item label="Amount of unit consumed by time span" :show-feedback="false">
<n-input-number v-model:value="unitPerTimeSpan" />
<n-input-number v-model:value="unitPerTimeSpan" :min="1" />
<span style="margin: 0 10px">in</span>
<n-input-group>
<n-input-number v-model:value="timeSpan" />
<n-input-number v-model:value="timeSpan" :min="1" />
<n-select
v-model:value="timeSpanUnitMultiplier"
:options="[