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