Skip to content

v-for : add a prop 'uniqueKey' to generates a unique key automatically #6235

@vvpvvp

Description

@vvpvvp

What problem does this feature solve?

In our business system, there is so many :key object used.
We did so many data operate, we have to use it.
And now, object key is not advocated, and I'm wondering if there is some prop can do it automatically.
It's will be helpful.

What does the proposed API look like?

<div v-for="item of list" :unique-key="true"></div>

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