chore: comment on slot optimization hint [ci skip]
This commit is contained in:
@@ -36,6 +36,10 @@ export type RawSlots = {
|
|||||||
// normalizeChildren when the component vnode is created.
|
// normalizeChildren when the component vnode is created.
|
||||||
_ctx?: ComponentInternalInstance | null
|
_ctx?: ComponentInternalInstance | null
|
||||||
// internal, indicates compiler generated slots
|
// internal, indicates compiler generated slots
|
||||||
|
// we use a reserved property instead of a vnode patchFlag because the slots
|
||||||
|
// object may be directly passed down to a child component in a manual
|
||||||
|
// render funciton, and the optimization hint need to be on the slot object
|
||||||
|
// itself to be preserved.
|
||||||
_?: 1
|
_?: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user