<!-- 消息提示组件 -->
<template>
    <div class="msg-box-overlay" v-if="dialogVisible">
        <div class="content-wrapper">
            <div class="title">{{title}}</div>
            <div class="desc">{{content}}</div>
            <div class="btn-wrapper">
                <div class="btn cancel" @click="cancel">Not yet</div>
                <div class="btn confirm" @click="confirm">Deposit</div>
            </div>
        </div>
    </div>
</template>

<script setup>
/* eslint-disable */
import { ref, defineEmits, defineProps } from "vue";
const props = defineProps({
    dialogVisible: {
        type: Boolean,
        default: false,
    },
    title: {
        type: String,
        default: ''
    },
    content: {
        type: String,
        default: ''
    },
});

const emits = defineEmits(["cancel", "confirm"]);


const cancel = () => {
    emits("cancel", {});
};

const confirm = () => {
    emits("confirm", {});
};

</script>

<style lang="scss" scoped>
.msg-box-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;

    .content-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 375px;
        height: 220px;
        background: #FFFFFF;
        border-radius: 20px;
        padding: 20px;
        box-sizing: border-box;
        transform: translate(-50%, -50%);
        text-align: center;

        .title {
            font-weight: 600;
            font-size: 20px;
            margin-bottom: 13px;
        }
        .desc {
            height: 68px;
            font-weight: 400;
            font-size: 15px;
            margin-bottom: 25px;
        }
        .btn-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .btn {
                height: 46px;
                width: 163px;
                text-align: center;
                line-height: 46px;
                border-radius: 100px;
                border: 1px solid #1D9BF0;
                box-sizing: border-box;
                font-weight: 600;
                font-size: 16px;
                cursor: pointer;
            }

            .cancel {
                color: #1D9BF0;
            }
            .confirm {
                background: #1D9BF0;
                color: #fff;
            }
        }
    }
}
</style>
