File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -692,9 +692,8 @@ function createInstance (
692692 component . options . _base = _Vue ;
693693 }
694694
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
698697 ? component . extend ( instanceOptions )
699698 : _Vue . extend ( component ) . extend ( instanceOptions ) ;
700699
Original file line number Diff line number Diff line change @@ -2798,9 +2798,8 @@ function createInstance (
27982798 component . options . _base = _Vue ;
27992799 }
28002800
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
28042803 ? component . extend ( instanceOptions )
28052804 : _Vue . extend ( component ) . extend ( instanceOptions ) ;
28062805
Original file line number Diff line number Diff line change @@ -2800,9 +2800,8 @@ function createInstance (
28002800 component . options . _base = _Vue ;
28012801 }
28022802
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
28062805 ? component . extend ( instanceOptions )
28072806 : _Vue . extend ( component ) . extend ( instanceOptions ) ;
28082807
Original file line number Diff line number Diff line change @@ -2801,9 +2801,8 @@ function createInstance (
28012801 component . options . _base = _Vue ;
28022802 }
28032803
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
28072806 ? component . extend ( instanceOptions )
28082807 : _Vue . extend ( component ) . extend ( instanceOptions ) ;
28092808
You can’t perform that action at this time.
0 commit comments