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 0a11308 commit c77f903Copy full SHA for c77f903
src/component.ts
@@ -65,8 +65,12 @@ export function componentFactory (
65
66
// find super
67
const superProto = Object.getPrototypeOf(Component.prototype)
68
- const Super: VueClass = superProto instanceof Vue
69
- ? superProto.constructor as VueClass
70
- : Vue
71
- return Super.extend(options)
+ if (!(superProto instanceof Vue)) {
+ Component.prototype = Object.create(Vue.prototype)
+ Component.prototype.constructor = Component
+ Object.keys(Vue).forEach(key => {
72
+ Component[key] = Vue[key]
73
+ })
74
+ }
75
+ return Component.extend(options)
76
}
0 commit comments