Skip to content

Question: How to iterate over maps and sets with v-for #6644

@yoyo837

Description

@yoyo837

What problem does this feature solve?

How to iterate over Map and Set with v-for ? I want to use the key/index field or both.(ES6 Map/Set)

<mt-index-list>
  <mt-index-section v-for="(list, key) in serverData.indexMap" :index="key" :key="key">
	<mt-cell title="Aaron"></mt-cell>
  </mt-index-section>
</mt-index-list>

What does the proposed API look like?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions