File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ export default function createInstance (
38
38
addEventLogger ( _Vue )
39
39
40
40
const instanceOptions = {
41
- ...options ,
42
- propsData : {
43
- ...options . propsData
44
- }
41
+ ...options
42
+ // propsData: {
43
+ // ...options.propsData
44
+ // }
45
45
}
46
46
47
47
deleteMountingOptions ( instanceOptions )
@@ -70,7 +70,9 @@ export default function createInstance (
70
70
_Vue . component ( c , stubComponents [ c ] )
71
71
} )
72
72
73
- const Constructor = _Vue . extend ( component ) . extend ( instanceOptions )
73
+ const Constructor = vueVersion < 2.3 && typeof component === 'function'
74
+ ? component
75
+ : _Vue . extend ( component ) . extend ( instanceOptions )
74
76
75
77
Object . keys ( instanceOptions . components || { } ) . forEach ( key => {
76
78
Constructor . component ( key , instanceOptions . components [ key ] )
You can’t perform that action at this time.
0 commit comments