merge
This commit is contained in:
parent
20928e45a2
commit
27c46931f5
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
<h2 :id="step.id">
|
<h2 :id="step.id">
|
||||||
<span :data-icon="step.id">{{ step.label }}</span>
|
<span :data-icon="step.id">{{ step.label }}</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div ref="card-node" class="cards flow">
|
<div ref="cards-node" class="cards | flow">
|
||||||
<component :is="cardsMap[step.id]" :step="step" />
|
<component :is="cardsMap[step.id]" :step="step" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -46,7 +46,7 @@ dayjs.locale("fr");
|
||||||
|
|
||||||
const { page } = usePageStore();
|
const { page } = usePageStore();
|
||||||
const { setStatus } = useProjectStore();
|
const { setStatus } = useProjectStore();
|
||||||
const cardNode = useTemplateRef("card-node");
|
const cardsNode = useTemplateRef("cards-node");
|
||||||
|
|
||||||
const steps = page.steps.map((item) => {
|
const steps = page.steps.map((item) => {
|
||||||
return item.value;
|
return item.value;
|
||||||
|
|
@ -64,7 +64,7 @@ const mergedFiles = computed(() => {
|
||||||
// Hooks
|
// Hooks
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (step.id === page.content.currentstep) {
|
if (step.id === page.content.currentstep) {
|
||||||
cardNode.value.scrollIntoView({
|
cardsNode.value.scrollIntoView({
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
inline: "center",
|
inline: "center",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue