<template>
    <div class="img-bar">
        <img v-if="data.value.src" :src="data.value.src">
        <img v-else src="../../assets/images/defaultimg.jpg"/>
    </div>
</template>

<script>
export default {
    name: 'editorImage',
    props: ['data', 'className']
}
</script>

<style  scoped>
.img-bar{
    padding: 10px 20px;
}
img{
    width: 100%;
    /* height:150px; */
    border-radius: 5px;
}

</style>