mirror of https://github.com/vuejs/core.git
feat(types): add slots types for built-in components (#6033)
This commit is contained in:
parent
1b1242f4d1
commit
3cb4dc9e55
|
@ -283,6 +283,9 @@ if (__COMPAT__) {
|
||||||
export const BaseTransition = BaseTransitionImpl as unknown as {
|
export const BaseTransition = BaseTransitionImpl as unknown as {
|
||||||
new (): {
|
new (): {
|
||||||
$props: BaseTransitionProps<any>
|
$props: BaseTransitionProps<any>
|
||||||
|
$slots: {
|
||||||
|
default(): VNode[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -344,6 +344,9 @@ export const KeepAlive = KeepAliveImpl as any as {
|
||||||
__isKeepAlive: true
|
__isKeepAlive: true
|
||||||
new (): {
|
new (): {
|
||||||
$props: VNodeProps & KeepAliveProps
|
$props: VNodeProps & KeepAliveProps
|
||||||
|
$slots: {
|
||||||
|
default(): VNode[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,13 @@ export const Suspense = (__FEATURE_SUSPENSE__
|
||||||
? SuspenseImpl
|
? SuspenseImpl
|
||||||
: null) as unknown as {
|
: null) as unknown as {
|
||||||
__isSuspense: true
|
__isSuspense: true
|
||||||
new (): { $props: VNodeProps & SuspenseProps }
|
new (): {
|
||||||
|
$props: VNodeProps & SuspenseProps
|
||||||
|
$slots: {
|
||||||
|
default(): VNode[]
|
||||||
|
fallback(): VNode[]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function triggerEvent(
|
function triggerEvent(
|
||||||
|
|
|
@ -393,7 +393,12 @@ function hydrateTeleport(
|
||||||
// Force-casted public typing for h and TSX props inference
|
// Force-casted public typing for h and TSX props inference
|
||||||
export const Teleport = TeleportImpl as unknown as {
|
export const Teleport = TeleportImpl as unknown as {
|
||||||
__isTeleport: true
|
__isTeleport: true
|
||||||
new (): { $props: VNodeProps & TeleportProps }
|
new(): {
|
||||||
|
$props: VNodeProps & TeleportProps
|
||||||
|
$slots: {
|
||||||
|
default(): VNode[]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateCssVars(vnode: VNode) {
|
function updateCssVars(vnode: VNode) {
|
||||||
|
|
Loading…
Reference in New Issue