mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
first component rendered!
This commit is contained in:
parent
f2c8880041
commit
5ce49792e2
@ -8,7 +8,7 @@ export default function Component (Ctor, data, children) {
|
||||
return {
|
||||
sel: 'component',
|
||||
data: {
|
||||
hooks: { init, prepatch, destroy },
|
||||
hook: { init, prepatch, destroy },
|
||||
Ctor, data, children
|
||||
}
|
||||
}
|
||||
@ -19,7 +19,8 @@ function init (vnode) {
|
||||
const child = new data.Ctor({
|
||||
_renderData: data.data,
|
||||
_renderChildren: data.children
|
||||
}).$mount()
|
||||
})
|
||||
child.$mount()
|
||||
data.child = child
|
||||
data.vnode = child._vnode
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user