feat: migrate ImagePreview component

This commit is contained in:
chenjiahan
2020-08-17 10:38:11 +08:00
parent b4e02668cf
commit 3a290ce564
7 changed files with 104 additions and 71 deletions
+3 -1
View File
@@ -31,6 +31,8 @@ export default {
windowHeight: Number,
},
emits: ['scale', 'close'],
data() {
return {
scale: 1,
@@ -250,11 +252,11 @@ export default {
return (
<SwipeItem class={bem('swipe-item')}>
<Image
v-slots={imageSlots}
src={this.src}
fit="contain"
class={bem('image', { vertical: this.vertical })}
style={this.imageStyle}
scopedSlots={imageSlots}
onLoad={this.onLoad}
/>
</SwipeItem>