<template>
    <van-image :src="src" :fit="fit" :radius="radius">
        <template v-slot:loading>
            <loading :radius="radius"></loading>
        </template>
    </van-image>
</template>

<script>
import { Image } from 'vant';
import Loading from './Loading/Loading.vue';
export default {
    props: ['src', 'fit', 'radius'],
    components: {
        'van-image': Image,
        Loading
    }
};
</script>
<style lang="less" scoped>
.van-image {
    overflow: hidden;
}
</style>
