From 912e1f305aed470d58011857f49595be5d1488b1 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 27 Sep 2024 12:26:49 +0300 Subject: [PATCH] hise opened calc --- components/calc/values.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/components/calc/values.vue b/components/calc/values.vue index 6450600..ac7098b 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -17,6 +17,7 @@ const section_count = use_section_count() const extra_section = use_extra_section() const total_length = use_total_length() const min_length = use_min_length() +const open_calc = use_open_calc() if (!pillar_color.value) { const r = Math.floor(Math.random() * predefPillarColors.length) @@ -136,6 +137,10 @@ const changeParametres = () => { goal('calc_fence', form_state) } +watch(() => [form_state.fence_length, form_state.height], () => { + open_calc.value = [] +}) + const setLamelleColor = (color: ralTypes) => { lamelle_color.value = color; lamelle_text.value = contrastColor(color) ?? '#000' @@ -215,12 +220,11 @@ const calc_table = computed(() => { - + {{ pillar_pattern }}