Przeglądaj źródła

component vnode tag should be related to the constructor id

Evan You 10 lat temu
rodzic
commit
af56242c3d
1 zmienionych plików z 1 dodań i 1 usunięć
  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 }
   }