You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
589 B

<template>
2 years ago
<el-dialog width="75%" top="30px" :visible.sync="visible" :before-close="handleClose" :modal="true">
2 years ago
<div class="image-box">
2 years ago
<el-image :src="url" :fit="fit"></el-image>
2 years ago
</div>
2 years ago
</el-dialog>
</template>
<script>
export default {
name: "fullImage",
data() {
return {
2 years ago
fit: 'cover'
}
},
methods: {
handleClose() {
this.$emit("close");
}
},
props: {
visible: {
type: Boolean
},
url: {
type: String
}
}
}
</script>
<style>
2 years ago
.image-box {
2 years ago
display: flex;
align-items: center;
justify-content: center;
2 years ago
}
2 years ago
</style>