fix(renderSlot): set slot render as a STABLE_FRAGMENT (#776)

fix #766
This commit is contained in:
ysj16 2020-02-25 23:41:44 +08:00 committed by GitHub
parent 4a5b91bd1f
commit 8cb0b83088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ export function renderSlot(
Fragment, Fragment,
{ key: props.key }, { key: props.key },
slot ? slot(props) : fallback || [], slot ? slot(props) : fallback || [],
slots._ ? 0 : PatchFlags.BAIL slots._ ? PatchFlags.STABLE_FRAGMENT : PatchFlags.BAIL
) )
) )
} }