Browse Source

component vnode tag should be related to the constructor id

dev
Evan You 9 years ago
parent
commit
af56242c3d
  1. 2
      src/runtime/vdom/component.js

2
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 }
}

Loading…
Cancel
Save