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" #117

Open noicu opened 3 months ago

noicu commented 3 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>
noicu commented 3 months ago

The original merge branch has become polluted. Merging from this new branch. #113