mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
fix global mixin recursive name lookup
This commit is contained in:
parent
76d7809a11
commit
7304385c11
@ -9,6 +9,9 @@ export function initMixin (Vue: GlobalAPI) {
|
||||
// update constructors that are already created
|
||||
config._ctors.forEach(Ctor => {
|
||||
Ctor.options = mergeOptions(Ctor['super'].options, Ctor.extendOptions)
|
||||
if (Ctor.options.name) {
|
||||
Ctor.options.components[Ctor.options.name] = Ctor
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user