Просмотр исходного кода

chore: fix tag name in compiler/parser/index.js (#9165)

NaotoSuzuki 7 лет назад
Родитель
Сommit
8fccd82569
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/compiler/parser/index.js
  2. 1 1
      test/unit/modules/compiler/parser.spec.js

+ 1 - 1
src/compiler/parser/index.js

@@ -340,7 +340,7 @@ function processKey (el) {
         const parent = el.parent
         const parent = el.parent
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           warn(
           warn(
-            `Do not use v-for index as key on <transtion-group> children, ` +
+            `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.`
           )
           )
         }
         }

+ 1 - 1
test/unit/modules/compiler/parser.spec.js

@@ -250,7 +250,7 @@ describe('parser', () => {
         </transition-group>
         </transition-group>
       </div>
       </div>
     `, baseOptions)
     `, baseOptions)
-    expect('Do not use v-for index as key on <transtion-group> children').toHaveBeenWarned()
+    expect('Do not use v-for index as key on <transition-group> children').toHaveBeenWarned()
   })
   })
 
 
   it('v-pre directive', () => {
   it('v-pre directive', () => {