فهرست منبع

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

fix #766
ysj16 6 سال پیش
والد
کامیت
8cb0b83088
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/runtime-core/src/helpers/renderSlot.ts

+ 1 - 1
packages/runtime-core/src/helpers/renderSlot.ts

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