fix(compiler-core): detected forwarded slots in nested components (#4268)
fix #4244
This commit is contained in:
@@ -778,6 +778,13 @@ describe('compiler: transform component slots', () => {
|
||||
)
|
||||
expect(slots).toMatchObject(toMatch)
|
||||
})
|
||||
|
||||
test('<slot w/ nested component>', () => {
|
||||
const { slots } = parseWithSlots(
|
||||
`<Comp><Comp><slot/></Comp></Comp>`
|
||||
)
|
||||
expect(slots).toMatchObject(toMatch)
|
||||
})
|
||||
})
|
||||
|
||||
describe('errors', () => {
|
||||
|
||||
Reference in New Issue
Block a user