Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 3, 2024
1 parent f23cb52 commit c8c783e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/runtime-core/__tests__/scopeId.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('scopeId runtime support', () => {
__scopeId: 'child',
render(this: any) {
return h('div', renderSlot(this.$slots, 'default'))
}
},
}

const App = {
Expand All @@ -179,21 +179,21 @@ describe('scopeId runtime support', () => {
return [
h(TransitionGroup, null, {
default: withCtx(() => [
h('div', { key: 'foo' }, ' I have a TransitionGroup ')
])
})
h('div', { key: 'foo' }, ' I have a TransitionGroup '),
]),
}),
]
})
}),
)
}
},
}
const root = nodeOps.createElement('div')
render(h(App), root)
// slot content should have:
// - scopeId from parent
// - slotted scopeId (with `-s` postfix) from child (the tree owner)
expect(serializeInner(root)).toBe(
`<div child parent><div parent child-s> I have a TransitionGroup </div></div>`
`<div child parent><div parent child-s> I have a TransitionGroup </div></div>`,
)
})

Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-dom/src/components/TransitionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ const TransitionGroupImpl: ComponentOptions = {
return createVNode(
tag,
{
slotScopeIds: instance.vnode.slotScopeIds
slotScopeIds: instance.vnode.slotScopeIds,
},
children
children,
)
}
},
Expand Down

0 comments on commit c8c783e

Please sign in to comment.