Преглед изворни кода

component vnode tag should be related to the constructor id

Evan You пре 10 година
родитељ
комит
af56242c3d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/runtime/vdom/component.js

+ 1 - 1
src/runtime/vdom/component.js

@@ -25,7 +25,7 @@ export default function Component (Ctor, data, parent, children) {
   }
   // return a placeholder vnode
   return {
-    tag: 'component',
+    tag: 'vue-component-' + Ctor.cid,
     key: data && data.key,
     data: { hook, Ctor, data, parent, children }
   }