<template>
    <el-dialog
            :title="$t('common.CompanyProfile')"
            :visible.sync="dialogVisible"
            width="60%"
            :before-close="toViewLoginChange">
        <slot name="center"></slot>
    </el-dialog>
</template>
<script>
    export default {
        name: 'LoginMusk',
        props:{
            dialogVisible: {
                type: Boolean,
                default: false
            },
            title:{
                type:String,
                default:''
            },
            width:{
                type:String,
                default:'60%'
            }
        },
        data () {
            return {

            }
        },
        watch: {

        },
        methods:{

            toView(router, json) {
                clearInterval(this.timer);
                this.$router.push({ name: router, params: {key:json} });
            },
            toViewLoginChange(done){
                debugger
                this.$emit('FrameBack',false)
            },
        }

    }
</script>
