13404089107
9 小时以前 18be3cd617c79742bdd0a513e714695e1ab1ee0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<template>
    <div>
        <el-dialog top="40vh" :visible.sync="show" :show-close="false" :append-to-body="true"
            :close-on-click-modal="false" width="433px">
            <div class="top-con a-center" slot="title">
                <div class="left">
                    <img src="@/assets/public/notice@2x.png" style="width: 24px;height: 24px;margin-right: 14px;" />
                    <div class="title">{{ title }}</div>
                </div>
            </div>
            <div class="lh--32 fs--20">
                {{ tip }}
            </div>
            <span slot="footer" class="dialog-footer">
                <el-button @click="$emit('close')">取消</el-button>
                <el-button :type="btnType" @click="$emit('confirm')">{{ okText }}</el-button>
            </span>
        </el-dialog>
    </div>
</template>
 
<script>
export default {
    components: {},
    props: {
        show: {
            type: Boolean,
            default: false,
        },
        title: {
            type: String,
            default: '确认要删除这条信息吗?',
        },
        tip: {
            type: String,
            default: '删除后信息将无法找回',
        },
        okText: {
            type: String,
            default: '确定',
        },
        btnType: {
            type: String,
            default: 'danger',
        }
    },
    data() {
        return {};
    },
    computed: {},
    watch: {},
    created() { },
    mounted() { },
    methods: {},
};
</script>
<style scoped lang="less">
.left {
    display: flex;
}
 
::v-deep .el-dialog {
    border-radius: 12px;
 
    .el-dialog__header {
        padding-top: 28px;
        padding-right: 27px;
        padding-left: 34px;
        padding-bottom: 11px;
    }
 
    .el-dialog__body {
        padding: unset;
        padding-left: 73px;
        padding-right: 20px;
    }
 
    .el-dialog__footer {
        padding-top: 18px;
        padding-right: 27px;
        padding-bottom: 29px;
    }
}
 
.bgcolor1 {
    background: rgba(22, 119, 255, 1);
}
 
.top-con {
    display: flex;
    justify-content: space-between;
 
    .title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: rgba(0, 0, 0, 1);
        margin-bottom: 13px;
    }
}
 
.dialog-footer {
    display: flex;
    justify-content: end;
    gap: 10px;
}
</style>