daiwei 1 месяц назад
Родитель
Сommit
6c85675522
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/runtime-vapor/src/componentSlots.ts

+ 2 - 2
packages/runtime-vapor/src/componentSlots.ts

@@ -162,8 +162,8 @@ export function getScopeOwner(): VaporComponentInstance | null {
  * Wrap a slot function to track the slot owner.
  *
  * This ensures:
- * 1. createSlot gets rawSlots from the correct component (slot owner)
- * 2. Elements inherit the slot owner's scopeId
+ * 1. createSlot gets rawSlots from the correct instance (slot owner)
+ * 2. elements inherit the slot owner's scopeId
  */
 export function withVaporCtx(fn: Function): BlockFn {
   const owner = getScopeOwner()