<template>
    <el-dialog
        v-dialogDrag
        append-to-body
        :close-on-click-modal="false"
        :close-on-press-escape="false"
        center
        v-bind="$attrs"
        v-on="$listeners"
    >
        <slot />
        <span slot="footer" v-if="$slots.footer">
            <slot name="footer"></slot>
        </span>
        <span slot="title" v-if="$slots.title">
            <slot name="title"></slot>
        </span>
    </el-dialog>
</template>

<script>
import dialogDrag from "../../../service/directives/element-drag";
export default {
    name: "veDialog",
    directives:{
        dialogDrag
    },
    methods: {
    }
};
</script>

<style lang="less">
</style>
