@@ -232,25 +232,25 @@ describe('codegen', () => {
232
232
it ( 'generate dynamic scoped slot' , ( ) => {
233
233
assertCodegen (
234
234
'<foo><template :slot="foo" slot-scope="bar">{{ bar }}</template></foo>' ,
235
- `with(this){return _c('foo',{scopedSlots:_u([{key:foo,fn:function(bar){return [_v(_s(bar))]}}],true)})}`
235
+ `with(this){return _c('foo',{scopedSlots:_u([{key:foo,fn:function(bar){return [_v(_s(bar))]}}],null, true)})}`
236
236
)
237
237
} )
238
238
239
239
it ( 'generate scoped slot with multiline v-if' , ( ) => {
240
240
assertCodegen (
241
241
'<foo><template v-if="\nshow\n" slot-scope="bar">{{ bar }}</template></foo>' ,
242
- `with(this){return _c('foo',{scopedSlots:_u([{key:"default",fn:function(bar){return (\nshow\n)?[_v(_s(bar))]:undefined}}],true)})}`
242
+ `with(this){return _c('foo',{scopedSlots:_u([{key:"default",fn:function(bar){return (\nshow\n)?[_v(_s(bar))]:undefined}}],null, true)})}`
243
243
)
244
244
assertCodegen (
245
245
'<foo><div v-if="\nshow\n" slot="foo" slot-scope="bar">{{ bar }}</div></foo>' ,
246
- `with(this){return _c(\'foo\',{scopedSlots:_u([{key:"foo",fn:function(bar){return (\nshow\n)?_c(\'div\',{},[_v(_s(bar))]):_e()}}],true)})}`
246
+ `with(this){return _c(\'foo\',{scopedSlots:_u([{key:"foo",fn:function(bar){return (\nshow\n)?_c(\'div\',{},[_v(_s(bar))]):_e()}}],null, true)})}`
247
247
)
248
248
} )
249
249
250
250
it ( 'generate scoped slot with new slot syntax' , ( ) => {
251
251
assertCodegen (
252
252
'<foo><template v-if="show" #default="bar">{{ bar }}</template></foo>' ,
253
- `with(this){return _c('foo',{scopedSlots:_u([(show)?{key:"default",fn:function(bar){return [_v(_s(bar))]}}:null],true)})}`
253
+ `with(this){return _c('foo',{scopedSlots:_u([(show)?{key:"default",fn:function(bar){return [_v(_s(bar))]}}:null],null, true)})}`
254
254
)
255
255
} )
256
256
0 commit comments