I am working with a list created using Vue.js
Check out the code snippet below:
<ul>
<li
v-for="category in item.children"
:key="category.id"
class="menu-item"
>
<nuxt-link
:to="
localePath(
`/category/${category.slug}/${category.id}`
)
"
>
<h5>{{ category.lang[0].name }}</h5>
</nuxt-link>
<ul class="mega-menu__list">
<li
v-for="subItem in category.children"
:key="subItem.id"
>
<nuxt-link
:to="
localePath(
`/category/${subItem.slug}/${subItem.id}`
)
"
>
{{ subItem.lang[0].name }}
</nuxt-link>
</li>
</ul>
</li>
</ul>
https://i.sstatic.net/C2Fqe.png
I would like to change the layout to have each child displayed in its own column, similar to the image linked below:
https://i.sstatic.net/kr2wi.png
If anyone can provide assistance, it would be greatly appreciated.