<template>
    <a-modal
        :title="title === 'add' ? '新增配置' : '编辑配置'"
        v-if="visible"
        :visible="visible"
        dialog-class="configuration-modal"
        @ok="handleRelaxSure"
        @cancel="handleRelaxCancel"
    >
        <div>
            这个是账户配置弹窗
        </div>
    </a-modal>
</template>
<script>
export default {
    name: 'configuration-modal',
    props: {
        visible: {
            type: Boolean,
            default: false
        },
        title: {
            type: String,
            default: ''
        }
    },
    data() {
        return {};
    },
    methods: {
        handleRelaxSure() {
            const paramsData = {
                name: '123'
            };
            this.$emit('relaxSure', paramsData);
        },
        handleRelaxCancel() {
            this.$emit('relaxCancel');
        },
    }
};
</script>