fix(compiler-core): fix forwarded slots detection on template slots (#4124)
fix #4123
This commit is contained in:
@@ -771,6 +771,13 @@ describe('compiler: transform component slots', () => {
|
||||
const { slots } = parseWithSlots(`<Comp><slot v-for="a in b"/></Comp>`)
|
||||
expect(slots).toMatchObject(toMatch)
|
||||
})
|
||||
|
||||
test('<slot> tag w/ template', () => {
|
||||
const { slots } = parseWithSlots(
|
||||
`<Comp><template #default><slot/></template></Comp>`
|
||||
)
|
||||
expect(slots).toMatchObject(toMatch)
|
||||
})
|
||||
})
|
||||
|
||||
describe('errors', () => {
|
||||
|
||||
Reference in New Issue
Block a user