<template>
    <MyRect
        :class="$style.img"
        :style="{backgroundImage:`url(${src})`}"
    />
</template>

<script>
    import MyRect from "../graph/Rect";
    export default {
        name: "MyImage",
        components: {MyRect},
        props:{
            src:{
                type:String
            }
        }
    }
</script>

<style module lang="scss">
    @import '../../cssInjection/cssFunction.scss';
    @import '../../cssInjection/cssLayout.scss';

    .img {
        display: inline-block;
        vertical-align: middle;
    }
</style>