calc min length

This commit is contained in:
Kseninia Mikhaylova 2024-07-24 10:27:57 +03:00
parent c03b6dc69b
commit 75602e5166
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ const form_refs = {
} }
const changeParametres = () => { const changeParametres = () => {
// console.log(form_state.total_length * 1000, copy_form_state.total_length * 1000) // console.log('form', form_state.total_length * 1000, 'copy', copy_form_state.total_length * 1000)
const lamelles = Math.floor(form_state.height / parametric.height.step) const lamelles = Math.floor(form_state.height / parametric.height.step)
@ -188,7 +188,7 @@ const goal = (target: string, params: object) => {
<div class="form-row"> <div class="form-row">
<div class="form-item"> <div class="form-item">
<label for="total_length">Общая длина забора, м</label> <label for="total_length">Общая длина забора, м</label>
<input type="number" id="total_length" v-bind="parametric.total_length" <input type="number" id="total_length" v-bind="parametric.total_length" min=0
v-model="form_state.total_length" :ref="form_refs.total_length" /> v-model="form_state.total_length" :ref="form_refs.total_length" />
</div> </div>
<div class="form-item xl:w-2/4 text-sm xl:text-base"> <div class="form-item xl:w-2/4 text-sm xl:text-base">