wip: only generate non-scope slot flag when compatConfig is present
This commit is contained in:
parent
7a8cee8688
commit
61edb700d7
@ -302,7 +302,7 @@ export function buildSlots(
|
||||
children: TemplateChildNode[]
|
||||
) => {
|
||||
const fn = buildSlotFn(props, children, loc)
|
||||
if (__COMPAT__) {
|
||||
if (__COMPAT__ && context.compatConfig) {
|
||||
fn.isNonScopedSlot = true
|
||||
}
|
||||
return createObjectProperty(`default`, fn)
|
||||
|
Loading…
Reference in New Issue
Block a user