diff --git a/components/lib/image/Image.d.ts b/components/lib/image/Image.d.ts index 0546bf671..af8c29ffc 100644 --- a/components/lib/image/Image.d.ts +++ b/components/lib/image/Image.d.ts @@ -232,7 +232,7 @@ export interface ImageSlots { /** * Image error function. */ - onError: void; + onError(): void; }): VNode[]; /** * Custom preview template. @@ -249,7 +249,7 @@ export interface ImageSlots { /** * Preview click function. */ - onClick: void; + onClick(): void; }): VNode[]; } diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 3c9be3a5e..29836875b 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -43,7 +43,7 @@
- +