( instance: ComponentInternalInstance, children: VNodeNormalizedChildren, )
| 149 | } |
| 150 | |
| 151 | const normalizeVNodeSlots = ( |
| 152 | instance: ComponentInternalInstance, |
| 153 | children: VNodeNormalizedChildren, |
| 154 | ) => { |
| 155 | if ( |
| 156 | __DEV__ && |
| 157 | !isKeepAlive(instance.vnode) && |
| 158 | !(__COMPAT__ && isCompatEnabled(DeprecationTypes.RENDER_FUNCTION, instance)) |
| 159 | ) { |
| 160 | warn( |
| 161 | `Non-function value encountered for default slot. ` + |
| 162 | `Prefer function slots for better performance.`, |
| 163 | ) |
| 164 | } |
| 165 | const normalized = normalizeSlotValue(children) |
| 166 | instance.slots.default = () => normalized |
| 167 | } |
| 168 | |
| 169 | const assignSlots = ( |
| 170 | slots: InternalSlots, |
no test coverage detected