fix(types): allow style to be an array in JSX (#2947)
This commit is contained in:
parent
8ffcde2836
commit
13c9d2ca82
5
packages/runtime-dom/types/jsx.d.ts
vendored
5
packages/runtime-dom/types/jsx.d.ts
vendored
@ -245,11 +245,14 @@ interface AriaAttributes {
|
|||||||
'aria-valuetext'?: string
|
'aria-valuetext'?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vue's style normalization supports nested arrays
|
||||||
|
type StyleValue = string | CSSProperties | Array<StyleValue>
|
||||||
|
|
||||||
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
||||||
innerHTML?: string
|
innerHTML?: string
|
||||||
|
|
||||||
class?: any
|
class?: any
|
||||||
style?: string | CSSProperties
|
style?: StyleValue
|
||||||
|
|
||||||
// Standard HTML Attributes
|
// Standard HTML Attributes
|
||||||
accesskey?: string
|
accesskey?: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user