fix: make transition-group key warning a tip to avoid breaking compilation

This commit is contained in:
Evan You 2018-12-21 14:46:18 -05:00
parent 1c105fb16c
commit d08b49f520

View File

@ -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 */
)
}
}