show result
This commit is contained in:
parent
aa329dd2a0
commit
2b16fb754f
|
@ -199,8 +199,8 @@ const plurals = {
|
|||
Забор общей длиной {{ form_state.total_length }}{{ '\xa0' }}м,
|
||||
{{ section_count }}
|
||||
<Plural :n="section_count" :forms="plurals.section" /> по
|
||||
{{ form_state.length }}{{ '\xa0' }}мм<template v-if="form_state.extra_section">
|
||||
и 1 дополнительная секция длиной {{ form_state.extra_section }}{{ '\xa0' }}мм</template>.
|
||||
{{ form_state.length.toFixed(2) }}{{ '\xa0' }}мм<template v-if="form_state.extra_section">
|
||||
и 1 дополнительная секция длиной {{ form_state.extra_section.toFixed(2) }}{{ '\xa0' }}мм</template>.
|
||||
</p>
|
||||
<p>
|
||||
Всего <template v-if="!form_state.remove_pillar">
|
||||
|
@ -209,8 +209,8 @@ const plurals = {
|
|||
</template>
|
||||
{{ section_count * lamelles_count }}
|
||||
<Plural :n="section_count * lamelles_count" :forms="plurals.lamelle" />
|
||||
{{ `длиной ${form_state.length}\xa0мм` }}<template v-if="form_state.extra_section">и
|
||||
{{ ~~(!!form_state.extra_section) * lamelles_count }}
|
||||
{{ `длиной ${form_state.length.toFixed(2)}\xa0мм` }}<template v-if="form_state.extra_section">и
|
||||
{{ ~~(!!form_state.extra_section.toFixed(2)) * lamelles_count }}
|
||||
<Plural :n="~~(!!form_state.extra_section) * lamelles_count" :forms="plurals.lamelle" />
|
||||
{{ `длиной ${form_state.extra_section}\xa0мм` }}
|
||||
</template>.
|
||||
|
|
|
@ -68,11 +68,11 @@ watch([section_count, fence_section, extra_section], (s) => {
|
|||
if (extra_section && props.index == (section_count.value + 1)) {
|
||||
pillar_one_pos.value = (extra.value as number) * -0.5 - 0.015
|
||||
pillar_two_pos.value = (extra.value as number) * 0.5 + pillar_size + bSize - 0.01
|
||||
translate_to_section.value = make_translate_to_section(extra_section.value)
|
||||
// translate_to_section.value = make_translate_to_section(extra_section.value * 0.001)
|
||||
} else {
|
||||
pillar_one_pos.value = fence_section.value * -0.5 - 0.015
|
||||
pillar_two_pos.value = fence_section.value * 0.5 + pillar_size + bSize - 0.01
|
||||
translate_to_section.value = make_translate_to_section()
|
||||
// translate_to_section.value = make_translate_to_section()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue