Skip to content

Commit

Permalink
index added
Browse files Browse the repository at this point in the history
  • Loading branch information
dimailn committed Jan 23, 2024
1 parent 739b15b commit 5c66389
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/templates/nested.vue
Expand Up @@ -19,7 +19,11 @@
@require-source="requireSource"
v-if="isCollection && (index !== undefined)"
>
<slot :resource="wrappedCollectionFiltered[index].item" :$resource="wrappedCollectionFiltered[index].item" />
<slot
:resource="wrappedCollectionFiltered[index].item"
:$resource="wrappedCollectionFiltered[index].item"
:$index="wrappedCollectionFiltered[index].index"
/>
</rf-form>

<component :is="wrapper" v-else-if="isCollection">
Expand All @@ -45,7 +49,11 @@
@reload-sources="reloadSources"
@require-source="requireSource"
>
<slot :resource="wrapper.item" :$resource="wrapper.item" />
<slot
:resource="wrapper.item"
:$resource="wrapper.item"
:$index="wrapper.index"
/>
</rf-form>
</template>

Expand Down

0 comments on commit 5c66389

Please sign in to comment.