modal-have-title.vue 550 Bytes
<template>
    <div class="modal-cont">
        <h5>{{title}}</h5>
        <slot></slot>
    </div>
</template>

<script>
export default {
    name: 'modalHaveTitle',
    props: {
        title: {
            type: String,
            default: ''
        }
    }
}
</script>

<style lang="scss" scoped>
.modal-cont {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;

    h5 {
        text-align: center;
        padding: 0;
        margin: 0;
        font-weight: bold;
        font-size: 20px;
    }
}
</style>