2
0
Эх сурвалжийг харах

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

Innei 2 жил өмнө
parent
commit
68d6b43f7e

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

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