mirror of https://github.com/vuejs/core.git
parent
a9e3fa4e21
commit
824174915f
|
|
@ -108,7 +108,7 @@ export function h(
|
|||
export function h(
|
||||
type: typeof Teleport,
|
||||
props: RawProps & TeleportProps,
|
||||
children: RawChildren
|
||||
children: RawChildren | RawSlots
|
||||
): VNode
|
||||
|
||||
// suspense
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ describe('h inference w/ Fragment', () => {
|
|||
|
||||
describe('h inference w/ Teleport', () => {
|
||||
h(Teleport, { to: '#foo' }, 'hello')
|
||||
h(Teleport, { to: '#foo' }, { default() {} })
|
||||
// @ts-expect-error
|
||||
expectError(h(Teleport))
|
||||
// @ts-expect-error
|
||||
|
|
|
|||
Loading…
Reference in New Issue