@@ -33,7 +33,7 @@ export function render(_ctx) {
3333 name: item ,
3434 fn: _withVaporCtx ((_slotProps0 ) => {
3535 const n0 = t0 ()
36- _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [ " bar" ] )))
36+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 . bar )))
3737 return n0
3838 })
3939 })))
@@ -275,12 +275,12 @@ export function render(_ctx) {
275275 const n1 = _createComponentWithFallback (_component_Inner , null , {
276276 " default" : _withVaporCtx ((_slotProps1 ) => {
277277 const n0 = t0 ()
278- _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [ " foo" ] + _slotProps1 [ " bar" ] + _ctx .baz )))
278+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 . foo + _slotProps1 . bar + _ctx .baz )))
279279 return n0
280280 })
281281 })
282282 const n3 = t0 ()
283- _renderEffect (() => _setText (n3 , " " + _toDisplayString (_slotProps0 [ " foo" ] + _ctx .bar + _ctx .baz )))
283+ _renderEffect (() => _setText (n3 , " " + _toDisplayString (_slotProps0 . foo + _ctx .bar + _ctx .baz )))
284284 return [n1 , n3 ]
285285 })
286286 }, true )
@@ -300,7 +300,7 @@ export function render(_ctx) {
300300 name: _ctx .named ,
301301 fn: _withVaporCtx ((_slotProps0 ) => {
302302 const n0 = t0 ()
303- _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [ " foo" ] + _ctx .bar )))
303+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 . foo + _ctx .bar )))
304304 return n0
305305 })
306306 })
@@ -319,7 +319,7 @@ export function render(_ctx) {
319319 const n1 = _createComponentWithFallback (_component_Comp , null , {
320320 " named" : _withVaporCtx ((_slotProps0 ) => {
321321 const n0 = t0 ()
322- _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [ " foo" ] + _ctx .bar )))
322+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 . foo + _ctx .bar )))
323323 return n0
324324 })
325325 }, true )
@@ -336,7 +336,7 @@ export function render(_ctx) {
336336 const n1 = _createComponentWithFallback (_component_Comp , null , {
337337 " default" : _withVaporCtx ((_slotProps0 ) => {
338338 const n0 = t0 ()
339- _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [ " foo" ] + _ctx .bar )))
339+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 . foo + _ctx .bar )))
340340 return n0
341341 })
342342 }, true )
@@ -380,6 +380,91 @@ export function render(_ctx) {
380380} "
381381`;
382382
383+ exports[`compiler: transform slot > slot prop alias uses original key 1`] = `
384+ "import { resolveComponent as _resolveComponent , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
385+ const t0 = _template(" ")
386+
387+ export function render(_ctx) {
388+ const _component_Comp = _resolveComponent (" Comp" )
389+ const n2 = _createComponentWithFallback (_component_Comp , null , {
390+ " default" : _withVaporCtx ((_slotProps0 ) => {
391+ const n0 = t0 ()
392+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 .msg )))
393+ return n0
394+ })
395+ }, true )
396+ return n2
397+ } "
398+ `;
399+
400+ exports[`compiler: transform slot > slot prop computed key destructuring 1`] = `
401+ "import { resolveComponent as _resolveComponent , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
402+ const t0 = _template(" ")
403+
404+ export function render(_ctx) {
405+ const _component_Comp = _resolveComponent (" Comp" )
406+ const n2 = _createComponentWithFallback (_component_Comp , null , {
407+ " default" : _withVaporCtx ((_slotProps0 ) => {
408+ const n0 = t0 ()
409+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 [_ctx .key ])))
410+ return n0
411+ })
412+ }, true )
413+ return n2
414+ } "
415+ `;
416+
417+ exports[`compiler: transform slot > slot prop default value 1`] = `
418+ "import { resolveComponent as _resolveComponent , getDefaultValue as _getDefaultValue , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
419+ const t0 = _template(" ")
420+
421+ export function render(_ctx) {
422+ const _component_Comp = _resolveComponent (" Comp" )
423+ const n2 = _createComponentWithFallback (_component_Comp , null , {
424+ " default" : _withVaporCtx ((_slotProps0 ) => {
425+ const n0 = t0 ()
426+ _renderEffect (() => _setText (n0 , _toDisplayString (_getDefaultValue (_slotProps0 .foo , 1 ))))
427+ return n0
428+ })
429+ }, true )
430+ return n2
431+ } "
432+ `;
433+
434+ exports[`compiler: transform slot > slot prop nested destructuring 1`] = `
435+ "import { resolveComponent as _resolveComponent , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
436+ const t0 = _template(" ")
437+
438+ export function render(_ctx) {
439+ const _component_Comp = _resolveComponent (" Comp" )
440+ const n2 = _createComponentWithFallback (_component_Comp , null , {
441+ " default" : _withVaporCtx ((_slotProps0 ) => {
442+ const n0 = t0 ()
443+ _renderEffect (() => _setText (n0 , _toDisplayString (_slotProps0 .foo .bar )))
444+ return n0
445+ })
446+ }, true )
447+ return n2
448+ } "
449+ `;
450+
451+ exports[`compiler: transform slot > slot prop rest destructuring 1`] = `
452+ "import { resolveComponent as _resolveComponent , getRestElement as _getRestElement , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
453+ const t0 = _template(" ")
454+
455+ export function render(_ctx) {
456+ const _component_Comp = _resolveComponent (" Comp" )
457+ const n2 = _createComponentWithFallback (_component_Comp , null , {
458+ " default" : _withVaporCtx ((_slotProps0 ) => {
459+ const n0 = t0 ()
460+ _renderEffect (() => _setText (n0 , _toDisplayString (_getRestElement (_slotProps0 , [" foo" ]).bar )))
461+ return n0
462+ })
463+ }, true )
464+ return n2
465+ } "
466+ `;
467+
383468exports[`compiler: transform slot > with whitespace: 'preserve' > implicit default slot 1`] = `
384469"import { resolveComponent as _resolveComponent , withVaporCtx as _withVaporCtx , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
385470const t0 = _template(" Header ")
0 commit comments