Skip to content

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

Open
CeeVeeX wants to merge 1 commit intozunnzunn:masterfrom
CeeVeeX:rows-provide2
Open

Fix multi-level nesting issue with "v-for"#117
CeeVeeX wants to merge 1 commit intozunnzunn:masterfrom
CeeVeeX:rows-provide2

Conversation

@CeeVeeX
Copy link
Copy Markdown
Contributor

@CeeVeeX CeeVeeX commented May 20, 2024

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>

@CeeVeeX
Copy link
Copy Markdown
Contributor Author

CeeVeeX commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant