diff --git a/components/dropdown/list.vue b/components/dropdown/list.vue index 29c65f1..2aa0af9 100644 --- a/components/dropdown/list.vue +++ b/components/dropdown/list.vue @@ -3,11 +3,15 @@ import { getFilename as getPattern, patterns } from '../pattern'; import { getFilename as getTopper, toppers } from '../topper'; const props = defineProps(['cb', 'patterns']); - -const p = { - list: undefined, - func: undefined +type pType = { + list: typeof patterns | typeof toppers, + func: any } +const p = { + list: [], + func: () => { } +} as pType + if (props.patterns == 'pattern') { p.list = patterns; p.func = getPattern diff --git a/components/model/fence.vue b/components/model/fence.vue index e83c744..a270ab9 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -132,6 +132,7 @@ watch(lamelles_count, setBraceCount) const pillar = ref([]) const setPillar = () => { + console.log(props.models.pillar_top) const top = props.models.pillar_top.children[0]; top.position.setComponent(1, lSize * lamelles_count.value + lamelles_count.value * 0.0001 * scale_koef); @@ -156,7 +157,7 @@ const setPillar = () => { pillar.value = arr.map(el => el.clone()) } setPillar() -watch([pillar_pattern, pillar_color, fence_section, lamelles_count], setPillar) +watch([pillar_pattern, pillar_color, pillar_topper, fence_section, lamelles_count], setPillar) const fastening = ref([]) const setFastening = () => { diff --git a/components/model/parametric.vue b/components/model/parametric.vue index 76254eb..a069d5b 100644 --- a/components/model/parametric.vue +++ b/components/model/parametric.vue @@ -1,9 +1,9 @@