Skip to content

Allow defining order in v-for #10965

Closed
Closed
@ybasefinal

Description

@ybasefinal

What problem does this feature solve?

Vue currently does not directly support reverse loops. Generally, it can be solved by using calculated attributes, but if you want to iterate over the objects in slotProps, the calculated attributes are not available (it is also possible that my usage is wrong). I hope there is a way that The method of traversing the array, so that you no longer need to create calculated properties for the array

What does the proposed API look like?

Consider adding a property to v: for to specify the traversal direction

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions