Skip to content

Reference a specific array index in mapFields? #151

@dpeckham

Description

@dpeckham

Using Vue 3. My data model is like this: a.b[n].c

I have a component which can render a single "c".

I want to do this:

@Component({
  props: ["index"],
  computed: {
    ...mapFields({
      c: "a.b[index].c"    
    }),
  },
})

Is there a way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions