mirror of https://github.com/vuejs/core.git
Merge e38cff1fa3
into 56be3dd4db
This commit is contained in:
commit
50e54b18fa
|
@ -304,6 +304,8 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
||||||
security?: string
|
security?: string
|
||||||
unselectable?: 'on' | 'off'
|
unselectable?: 'on' | 'off'
|
||||||
|
|
||||||
|
popover?: '' | 'auto' | 'manual'
|
||||||
|
|
||||||
// Living Standard
|
// Living Standard
|
||||||
/**
|
/**
|
||||||
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
||||||
|
@ -382,6 +384,8 @@ export interface ButtonHTMLAttributes extends HTMLAttributes {
|
||||||
formnovalidate?: Booleanish
|
formnovalidate?: Booleanish
|
||||||
formtarget?: string
|
formtarget?: string
|
||||||
name?: string
|
name?: string
|
||||||
|
popovertarget?: string
|
||||||
|
popovertargetaction?: 'hide' | 'show' | 'toggle'
|
||||||
type?: 'submit' | 'reset' | 'button'
|
type?: 'submit' | 'reset' | 'button'
|
||||||
value?: string | ReadonlyArray<string> | number
|
value?: string | ReadonlyArray<string> | number
|
||||||
}
|
}
|
||||||
|
@ -407,7 +411,6 @@ export interface DataHTMLAttributes extends HTMLAttributes {
|
||||||
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
||||||
name?: string
|
name?: string
|
||||||
open?: Booleanish
|
open?: Booleanish
|
||||||
onToggle?: (payload: ToggleEvent) => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DelHTMLAttributes extends HTMLAttributes {
|
export interface DelHTMLAttributes extends HTMLAttributes {
|
||||||
|
@ -417,6 +420,7 @@ export interface DelHTMLAttributes extends HTMLAttributes {
|
||||||
|
|
||||||
export interface DialogHTMLAttributes extends HTMLAttributes {
|
export interface DialogHTMLAttributes extends HTMLAttributes {
|
||||||
open?: Booleanish
|
open?: Booleanish
|
||||||
|
onCancel?: (payload: Event) => void
|
||||||
onClose?: (payload: Event) => void
|
onClose?: (payload: Event) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -549,6 +553,8 @@ export interface InputHTMLAttributes extends HTMLAttributes {
|
||||||
name?: string
|
name?: string
|
||||||
pattern?: string
|
pattern?: string
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
|
popovertarget?: string
|
||||||
|
popovertargetaction?: 'toggle' | 'show' | 'hide'
|
||||||
readonly?: Booleanish
|
readonly?: Booleanish
|
||||||
required?: Booleanish
|
required?: Booleanish
|
||||||
size?: Numberish
|
size?: Numberish
|
||||||
|
@ -1382,6 +1388,10 @@ export interface Events {
|
||||||
// transition events
|
// transition events
|
||||||
onTransitionend: TransitionEvent
|
onTransitionend: TransitionEvent
|
||||||
onTransitionstart: TransitionEvent
|
onTransitionstart: TransitionEvent
|
||||||
|
|
||||||
|
// Toggle Events
|
||||||
|
onToggle?: ToggleEvent
|
||||||
|
onBeforetoggle?: ToggleEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventHandlers<E> = {
|
type EventHandlers<E> = {
|
||||||
|
|
|
@ -71,7 +71,8 @@ export const isKnownHtmlAttr: (key: string) => boolean = /*@__PURE__*/ makeMap(
|
||||||
`height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,` +
|
`height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,` +
|
||||||
`ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
|
`ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
|
||||||
`manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
|
`manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
|
||||||
`open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
|
`open,optimum,pattern,ping,placeholder,popover,popovertarget,popovertargetaction,` +
|
||||||
|
`poster,preload,radiogroup,readonly,` +
|
||||||
`referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
|
`referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
|
||||||
`selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
|
`selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
|
||||||
`start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
|
`start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
|
||||||
|
|
Loading…
Reference in New Issue