mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
adjust constructor option resolution timing
This commit is contained in:
parent
8e810dcfd6
commit
ddac9761b6
@ -34,10 +34,6 @@ export function createComponent (
|
||||
return
|
||||
}
|
||||
|
||||
// resolve constructor options in case global mixins are applied after
|
||||
// component constructor creation
|
||||
resolveConstructorOptions(Ctor)
|
||||
|
||||
// async component
|
||||
if (!Ctor.cid) {
|
||||
if (Ctor.resolved) {
|
||||
@ -56,6 +52,10 @@ export function createComponent (
|
||||
}
|
||||
}
|
||||
|
||||
// resolve constructor options in case global mixins are applied after
|
||||
// component constructor creation
|
||||
resolveConstructorOptions(Ctor)
|
||||
|
||||
data = data || {}
|
||||
|
||||
// extract props
|
||||
|
Loading…
Reference in New Issue
Block a user