zunnzunn / vue-ganttastic

Simple, interactive and highly customizable Gantt chart component for Vue 3
https://zunnzunn.github.io/vue-ganttastic/
565 stars 141 forks source link

Fix multi-level nesting issue with "v-for" #113

Closed noicu closed 3 months ago

noicu commented 4 months ago

Something like this

  <template v-for="bar, i in bars" :key="i">
    <g-gantt-row :bars="bar.rows" highlight-on-hover />
    <template v-if="bar.child">
      <template v-for="col, j in bar.child" :key="`${i}${j}`">
        <g-gantt-row :bars="col.rows" highlight-on-hover />
      </template>
    </template>
  </template>