File tree 4 files changed +8
-12
lines changed
4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -692,9 +692,8 @@ function createInstance (
692
692
component . options . _base = _Vue ;
693
693
}
694
694
695
- // when component constructed by Vue.extend,
696
- // use its own extend method to keep component information
697
- var Constructor = typeof component === 'function'
695
+ // extend component from _Vue to add properties and mixins
696
+ var Constructor = typeof component === 'function' && vueVersion < 2.3
698
697
? component . extend ( instanceOptions )
699
698
: _Vue . extend ( component ) . extend ( instanceOptions ) ;
700
699
Original file line number Diff line number Diff line change @@ -2798,9 +2798,8 @@ function createInstance (
2798
2798
component . options . _base = _Vue ;
2799
2799
}
2800
2800
2801
- // when component constructed by Vue.extend,
2802
- // use its own extend method to keep component information
2803
- var Constructor = typeof component === 'function'
2801
+ // extend component from _Vue to add properties and mixins
2802
+ var Constructor = typeof component === 'function' && vueVersion < 2.3
2804
2803
? component . extend ( instanceOptions )
2805
2804
: _Vue . extend ( component ) . extend ( instanceOptions ) ;
2806
2805
Original file line number Diff line number Diff line change @@ -2800,9 +2800,8 @@ function createInstance (
2800
2800
component . options . _base = _Vue ;
2801
2801
}
2802
2802
2803
- // when component constructed by Vue.extend,
2804
- // use its own extend method to keep component information
2805
- var Constructor = typeof component === 'function'
2803
+ // extend component from _Vue to add properties and mixins
2804
+ var Constructor = typeof component === 'function' && vueVersion < 2.3
2806
2805
? component . extend ( instanceOptions )
2807
2806
: _Vue . extend ( component ) . extend ( instanceOptions ) ;
2808
2807
Original file line number Diff line number Diff line change @@ -2801,9 +2801,8 @@ function createInstance (
2801
2801
component . options . _base = _Vue ;
2802
2802
}
2803
2803
2804
- // when component constructed by Vue.extend,
2805
- // use its own extend method to keep component information
2806
- var Constructor = typeof component === 'function'
2804
+ // extend component from _Vue to add properties and mixins
2805
+ var Constructor = typeof component === 'function' && vueVersion < 2.3
2807
2806
? component . extend ( instanceOptions )
2808
2807
: _Vue . extend ( component ) . extend ( instanceOptions ) ;
2809
2808
You can’t perform that action at this time.
0 commit comments