<template>
    <ElImage :class="ui" :src="src" :preview-src-list="srcs" :initial-index="index" :fit="fit" cross-origin="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>
