<template>
	<div class="sc-image-viewer">
		<el-image-viewer v-if="showViewer" v-bind="$attrs" :url-list="imageList" @close="$emit('closed')"></el-image-viewer>
	</div>
</template>

<script>
	import { ElImageViewer } from "element-plus";

	export default {
		emits: ["closed"],
		components: {
			ElImageViewer
		},

		props: {
			showViewer: { type: Boolean, default: false },
			imageList: { type: Array, default: () => [] }
		},

		data() {
			return {}
		},

		methods: {}
	}
</script>

<style lang="scss" scoped>
</style>