diff --git a/packages/image/src/image-viewer.vue b/packages/image/src/image-viewer.vue index 63c85dade2a..e5ebc6a16b6 100644 --- a/packages/image/src/image-viewer.vue +++ b/packages/image/src/image-viewer.vue @@ -40,6 +40,7 @@ v-if="i === index" ref="img" class="el-image-viewer__img" + v-bind="$attrs" :key="url" :src="currentImg" :style="imgStyle" diff --git a/packages/image/src/main.vue b/packages/image/src/main.vue index c6786b8484c..95d92dcc59b 100644 --- a/packages/image/src/main.vue +++ b/packages/image/src/main.vue @@ -16,7 +16,7 @@ :style="imageStyle" :class="{ 'el-image__inner--center': alignCenter, 'el-image__preview': preview }">