Skip to content

Commit 7304385

Browse files
committed
fix global mixin recursive name lookup
1 parent 76d7809 commit 7304385

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/global-api/mixin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export function initMixin (Vue: GlobalAPI) {
99
// update constructors that are already created
1010
config._ctors.forEach(Ctor => {
1111
Ctor.options = mergeOptions(Ctor['super'].options, Ctor.extendOptions)
12+
if (Ctor.options.name) {
13+
Ctor.options.components[Ctor.options.name] = Ctor
14+
}
1215
})
1316
}
1417
}

0 commit comments

Comments
 (0)