mirror of https://github.com/vuejs/core.git
fix(types): added name attribute support to details tag (#11823)
close #11821
This commit is contained in:
parent
9b7797d0d1
commit
c74176ec7b
|
@ -121,3 +121,5 @@ expectType<JSX.Element>(
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
/>,
|
/>,
|
||||||
)
|
)
|
||||||
|
// details
|
||||||
|
expectType<JSX.Element>(<details name="details" />)
|
||||||
|
|
|
@ -405,6 +405,7 @@ export interface DataHTMLAttributes extends HTMLAttributes {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
||||||
|
name?: string
|
||||||
open?: Booleanish
|
open?: Booleanish
|
||||||
onToggle?: (payload: ToggleEvent) => void
|
onToggle?: (payload: ToggleEvent) => void
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue