We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b1a00 commit 4df54f6Copy full SHA for 4df54f6
src/api/child.js
@@ -26,7 +26,10 @@ exports.$addChild = function (opts, BaseCtor) {
26
}
27
ChildVue = ctors[BaseCtor.cid]
28
if (!ChildVue) {
29
- var className = BaseCtor.name || 'VueComponent'
+ var optionName = BaseCtor.options.name
30
+ var className = optionName
31
+ ? _.camelize(optionName, true)
32
+ : 'VueComponent'
33
ChildVue = new Function(
34
'return function ' + className + ' (options) {' +
35
'this.constructor = ' + className + ';' +
0 commit comments