Merge branch 'ASTRA-110' into 'master'

[WIP] Поправил ошибку раскрытия опций состояния

See merge request andrusyakka/urban-couscous!437
This commit is contained in:
Aleksey Demin
2023-06-21 14:16:34 +00:00

View File

@@ -27,6 +27,7 @@
v-for="(type, key) in formConfig.conditions", v-for="(type, key) in formConfig.conditions",
v-model="isOpenExpansion[key]", v-model="isOpenExpansion[key]",
:label="type.label", :label="type.label",
@click="() => partId = ''"
@after-show="()=>jumpToItem()" @after-show="()=>jumpToItem()"
) )
.general-expaction.flex.flex-col.pl-4(v-if="!type?.partsTooth") .general-expaction.flex.flex-col.pl-4(v-if="!type?.partsTooth")
@@ -137,10 +138,12 @@ export default {
} }
}, },
jumpToItem() { jumpToItem() {
if (this.partId) {
this.$refs[this.partId][0].scrollIntoView({ this.$refs[this.partId][0].scrollIntoView({
block: "center", block: "center",
behavior: "smooth", behavior: "smooth",
}); });
}
}, },
updateConditions() { updateConditions() {
let arraySelected = [...this.getFilledConditions(this.data)]; let arraySelected = [...this.getFilledConditions(this.data)];