From df1ddf2992cd675d20c709a32768b89391a57b39 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 13 Jun 2024 14:28:25 +0300 Subject: [PATCH 1/2] fence modal --- components/calcValues.vue | 4 ++++ components/modal.vue | 17 ++++++++++++++--- components/model/fence.vue | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/components/calcValues.vue b/components/calcValues.vue index 2890cb2..cc5fa0d 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -8,6 +8,7 @@ const pillar_color = useState('pillar_color', () => '3009') const lamelle_color = useState('lamelle_color', () => '3004') const section_count = useState('section_count', () => 1) const extra_section = useState('extra_section', () => 0) +const total_length = useState('total_length', () => 2000 * 0.001 * 2) const parametric = { length: { @@ -79,6 +80,7 @@ const changeParametres = () => { } else { form_state.extra_section = 0 } + extra_section.value = form_state.extra_section form_refs.total_length.value.setCustomValidity('') if (form_state.extra_section && form_state.extra_section < parametric.length.min) { @@ -90,6 +92,8 @@ const changeParametres = () => { form_state.length = parametric.length.min } }, 300) + + total_length.value = form_state.total_length } } diff --git a/components/modal.vue b/components/modal.vue index 5e12c5f..ef74957 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -1,5 +1,7 @@