File tree 2 files changed +8
-8
lines changed
packages/compiler-vapor/src
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ export class TransformContext<T extends AllNode = AllNode> {
79
79
80
80
comment : CommentNode [ ] = [ ]
81
81
component : Set < string > = this . ir . component
82
- slots : ComponentSlots | null = null
83
- dynamicSlots : ComponentDynamicSlot [ ] | null = null
82
+ slots ? : ComponentSlots
83
+ dynamicSlots ? : ComponentDynamicSlot [ ]
84
84
85
85
private globalId = 0
86
86
@@ -100,8 +100,8 @@ export class TransformContext<T extends AllNode = AllNode> {
100
100
this . dynamic = ir . dynamic
101
101
this . template = ''
102
102
this . childrenTemplate = [ ]
103
- this . slots = null
104
- this . dynamicSlots = null
103
+ this . slots = undefined
104
+ this . dynamicSlots = undefined
105
105
isVFor && this . inVFor ++
106
106
return ( ) => {
107
107
// exit
Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ function transformComponentElement(
104
104
props : propsResult [ 0 ] ? propsResult [ 1 ] : [ propsResult [ 1 ] ] ,
105
105
resolve,
106
106
root,
107
- slots : context . slots || undefined ,
108
- dynamicSlots : context . dynamicSlots || undefined ,
107
+ slots : context . slots ,
108
+ dynamicSlots : context . dynamicSlots ,
109
109
} )
110
- context . slots = null
111
- context . dynamicSlots = null
110
+ context . slots = undefined
111
+ context . dynamicSlots = undefined
112
112
}
113
113
114
114
function resolveSetupReference ( name : string , context : TransformContext ) {
You can’t perform that action at this time.
0 commit comments