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
// function getType(fn) {
6
6
// const match = fn && fn.toString().match(/^\s*function (\w+)/);
@@ -129,7 +129,7 @@ const getComponent = (instance, prop, options = instance, execute = true) => {
129
129
} ;
130
130
const getComponentFromProp = ( instance , prop , options = instance , execute = true ) => {
131
131
if ( instance . $createElement ) {
132
- const h = instance . $createElement ;
132
+ // const h = instance.$createElement;
133
133
const temp = instance [ prop ] ;
134
134
if ( temp !== undefined ) {
135
135
return typeof temp === 'function' && execute ? temp ( h , options ) : temp ;
@@ -141,7 +141,7 @@ const getComponentFromProp = (instance, prop, options = instance, execute = true
141
141
undefined
142
142
) ;
143
143
} else {
144
- const h = instance . context . $createElement ;
144
+ // const h = instance.context.$createElement;
145
145
const temp = getPropsData ( instance ) [ prop ] ;
146
146
if ( temp !== undefined ) {
147
147
return typeof temp === 'function' && execute ? temp ( h , options ) : temp ;
0 commit comments