1
1
import isPlainObject from 'lodash/isPlainObject' ;
2
2
import classNames from 'classnames' ;
3
- import { isVNode , Fragment , Comment , Text } from 'vue' ;
3
+ import { isVNode , Fragment , Comment , Text , h } from 'vue' ;
4
4
import { camelize , hyphenate , isOn , resolvePropValue } from './util' ;
5
5
import isValid from './isValid' ;
6
6
// function getType(fn) {
@@ -187,7 +187,7 @@ const getComponent = (instance, prop = 'default', options = instance, execute =
187
187
} ;
188
188
const getComponentFromProp = ( instance , prop , options = instance , execute = true ) => {
189
189
if ( instance . $createElement ) {
190
- const h = instance . $createElement ;
190
+ // const h = instance.$createElement;
191
191
const temp = instance [ prop ] ;
192
192
if ( temp !== undefined ) {
193
193
return typeof temp === 'function' && execute ? temp ( h , options ) : temp ;
@@ -199,7 +199,7 @@ const getComponentFromProp = (instance, prop, options = instance, execute = true
199
199
undefined
200
200
) ;
201
201
} else {
202
- const h = instance . context . $createElement ;
202
+ // const h = instance.context.$createElement;
203
203
const temp = getPropsData ( instance ) [ prop ] ;
204
204
if ( temp !== undefined ) {
205
205
return typeof temp === 'function' && execute ? temp ( h , options ) : temp ;
0 commit comments