<template>
    <Modal
        title="导入"
        :value="true"
        :fullscreen="false"
        closable
        :mask-closable="false"
        @on-ok="onOK"
        @on-cancel="onCancel"
        :width="600"
    >
        <slot></slot>
        <slot name="footer" slot="footer"></slot>
    </Modal>
</template>
<script>
export default {
    name: 'WebBaseModal',
    data() {
        return {}
    },
    props: {
    },
    computed: {},
    components: {},
    methods: {
        onCancel() {
            this.remove()
        },
        onOK() {
            this.remove()
        },
        remove() {
            setTimeout(() => {
                this.destroy()
            }, 300)
        },
        destroy() {
            this.$destroy()
            document.body.removeChild(this.$el)
        }
    }
}
</script>
<style>
</style>
