Ver Fonte

fix(types/jsx): add missing loading attr for img element (#6160)

Innei há 2 anos atrás
pai
commit
68d6b43f7e
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/runtime-dom/src/jsx.ts

+ 1 - 0
packages/runtime-dom/src/jsx.ts

@@ -457,6 +457,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
   srcset?: string
   srcset?: string
   usemap?: string
   usemap?: string
   width?: Numberish
   width?: Numberish
+  loading?: 'lazy' | 'eager'
 }
 }
 
 
 export interface InsHTMLAttributes extends HTMLAttributes {
 export interface InsHTMLAttributes extends HTMLAttributes {