<template>
    <ElImage :class="ui" :src="src" :previewSrcList="srcs" :initial-index="index" :fit="fit" crossOrigin="anonymous"/>
</template>

<script setup>
defineProps({
    ui: {
        type: String,
        default: ''
    },
    src: {
        type: String,
        default: ''
    },
    srcs: {
        type: Array,
        default: () => ([])
    },
    index: {
        type: [String,Number],
        default: -1
    },
    fit: {
        type: String,
        default: 'cover'
    },
})
</script>
