mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
fix: make transition-group key warning a tip to avoid breaking compilation
This commit is contained in:
parent
1c105fb16c
commit
d08b49f520
@ -341,7 +341,8 @@ function processKey (el) {
|
||||
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
|
||||
warn(
|
||||
`Do not use v-for index as key on <transition-group> children, ` +
|
||||
`this is the same as not using keys.`
|
||||
`this is the same as not using keys.`,
|
||||
true /* tip */
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user