mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
parent
e244687135
commit
94ccca207c
6
types/jsx.d.ts
vendored
6
types/jsx.d.ts
vendored
@ -1303,6 +1303,12 @@ type EventHandlers<E> = {
|
||||
type ReservedProps = {
|
||||
key?: string | number | symbol
|
||||
ref?: VNodeData['ref']
|
||||
/**
|
||||
* @deprecated Old named slot syntax has been deprecated, use the new syntax
|
||||
* instead: `<template v-slot:name>`
|
||||
* https://v2.vuejs.org/v2/guide/components-slots.html#Named-Slots
|
||||
*/
|
||||
slot?: string
|
||||
}
|
||||
|
||||
type ElementAttrs<T> = T & ReservedProps
|
||||
|
@ -51,3 +51,5 @@ const Foo = defineComponent({
|
||||
// working
|
||||
;<Foo bar={1} />
|
||||
;<Foo bar={1} foo="baz" />
|
||||
|
||||
;<div slot="x" />
|
||||
|
Loading…
Reference in New Issue
Block a user