diff --git a/api-generator/components/image.js b/api-generator/components/image.js index 71cd2426d..fdb187f2c 100644 --- a/api-generator/components/image.js +++ b/api-generator/components/image.js @@ -25,7 +25,27 @@ const ImageEvents = [ const ImageSlots = [ { name: 'indicator', - description: 'Custom content for the preview indicator' + description: 'Custom content for the preview indicator.' + }, + { + name: 'refresh', + description: 'Custom content for the component refresh.' + }, + { + name: 'undo', + description: 'Custom content for the component undo.' + }, + { + name: 'zoomout', + description: 'Custom content for the component zoomout.' + }, + { + name: 'zoomin', + description: 'Custom content for the component zoomin.' + }, + { + name: 'close', + description: 'Custom content for the component close.' } ]; diff --git a/components/image/Image.d.ts b/components/image/Image.d.ts index 4125d2464..386e61086 100644 --- a/components/image/Image.d.ts +++ b/components/image/Image.d.ts @@ -37,6 +37,26 @@ export interface ImageSlots { * Custom indicator template. */ indicator(): VNode[]; + /** + * Custom refresh template. + */ + refresh(): VNode[]; + /** + * Custom undo template. + */ + undo(): VNode[]; + /** + * Custom zoomout template. + */ + zoomout(): VNode[]; + /** + * Custom zoomin template. + */ + zoomin(): VNode[]; + /** + * Custom close template. + */ + close(): VNode[]; } export interface ImageEmits {} diff --git a/components/image/Image.vue b/components/image/Image.vue index d757dce2f..00333598b 100644 --- a/components/image/Image.vue +++ b/components/image/Image.vue @@ -10,19 +10,33 @@
+ + + +