@@ -15,7 +15,7 @@ export default function rendererFactory(): IRenderComponent {
15
15
const AppContext = contextFactory ( ) ;
16
16
const Div = divFactory ( ) ;
17
17
18
- const ConfigProvider = adapter . getConfigProvider ( ) || Div ;
18
+ const ConfigProvider = adapter . getConfigProvider ( ) ;
19
19
20
20
const debug = Debug ( 'renderer:entry' ) ;
21
21
@@ -157,24 +157,25 @@ export default function rendererFactory(): IRenderComponent {
157
157
}
158
158
159
159
if ( Comp ) {
160
+ const comp = createElement ( Comp , {
161
+ key : schema . __ctx && `${ schema . __ctx . lceKey } _${ schema . __ctx . idx || '0' } ` ,
162
+ ref : this . __getRef ,
163
+ __appHelper : appHelper ,
164
+ __components : allComponents ,
165
+ __schema : schema ,
166
+ __designMode : designMode ,
167
+ ...this . props ,
168
+ } ) ;
160
169
return createElement ( AppContext . Provider , {
161
170
value : {
162
171
appHelper,
163
172
components : allComponents ,
164
173
engine : this ,
165
174
} ,
166
- } , createElement ( ConfigProvider , {
175
+ } , ConfigProvider ? createElement ( ConfigProvider , {
167
176
device : this . props . device ,
168
177
locale : this . props . locale ,
169
- } , createElement ( Comp , {
170
- key : schema . __ctx && `${ schema . __ctx . lceKey } _${ schema . __ctx . idx || '0' } ` ,
171
- ref : this . __getRef ,
172
- __appHelper : appHelper ,
173
- __components : allComponents ,
174
- __schema : schema ,
175
- __designMode : designMode ,
176
- ...this . props ,
177
- } ) ) ) ;
178
+ } , comp ) : comp ) ;
178
179
}
179
180
return null ;
180
181
}
0 commit comments