]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types/jsx): add missing loading attr for img element (#6160)
authorInnei <tukon479@gmail.com>
Mon, 10 Jul 2023 09:58:53 +0000 (17:58 +0800)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 09:58:53 +0000 (17:58 +0800)
packages/runtime-dom/src/jsx.ts

index 3826c14faaf740f80116c1a8bf74bb52143bbabb..fe850a7b28e4186f12d602034c5fadbefaf4b02e 100644 (file)
@@ -457,6 +457,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
   srcset?: string
   usemap?: string
   width?: Numberish
+  loading?: 'lazy' | 'eager'
 }
 
 export interface InsHTMLAttributes extends HTMLAttributes {