vue(tify)过渡 - 孩子必须被关键 - 但孩子们甚至没有任何标签
我想在vuetify或vue上的列表上使用过渡,但是我一直在遇到错误vue.runtime.esm.js?2b0e:619 [vue warn]:< transition-group>孩子必须被关键:< v-card>
我尝试了vuetify的方式
<v-fade-transition group tag="v-card">
<v-card v-for="(item, index) in usersData" :key="item.email" class="pa-5 my-7">
{{item}}, {{index}}
</v-card>
</v-fade-transition>
以及vue的方式:
<transition-group name="list" tag="v-card">
<v-card v-for="(item, index) in usersData" :key="item.email" class="pa-5 my-7">
{{item}}, {{index}}
</v-card>
</transition-group>
并且仍然会遇到错误。所以我想知道我该到底应该钥匙什么?
I want to use a transition on a list on vuetify or vue and yet I keep getting the error vue.runtime.esm.js?2b0e:619 [Vue warn]: <transition-group> children must be keyed: <v-card>
I tried the vuetify way
<v-fade-transition group tag="v-card">
<v-card v-for="(item, index) in usersData" :key="item.email" class="pa-5 my-7">
{{item}}, {{index}}
</v-card>
</v-fade-transition>
as well as the vue way:
<transition-group name="list" tag="v-card">
<v-card v-for="(item, index) in usersData" :key="item.email" class="pa-5 my-7">
{{item}}, {{index}}
</v-card>
</transition-group>
and still get the error. So I wonder what exactly should I key?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用片段,请阅读更多在这里
You can try like following snippet, read more here