Переглянути джерело

fix missing component tag

Evan You 9 роки тому
батько
коміт
ae9e7da9c1
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/core/vdom/create-element.js

+ 1 - 1
src/core/vdom/create-element.js

@@ -51,7 +51,7 @@ function _createElement (
       )
     } else if ((Ctor = resolveAsset(context.$options, 'components', tag))) {
       // component
-      return createComponent(Ctor, data, parent, context, host, children)
+      return createComponent(Ctor, data, parent, context, host, children, tag)
     } else {
       // unknown element, but check at runtime because it may get assigned
       // a namespace when its parent normalizes children