ZZJ
2022-07-27 f358f667a292973618199b51552d61179181cf1d
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
<template>
  <div class="DelBox">
    <div class="title">
      <span class="el-icon-warning"></span>
      是否删除该模块
    </div>
    <div class="buttonArea">
      <div class="cancel" @click="cancel">取消</div>
      <div class="confirm" @click="confirm">确认删除</div>
    </div>
  </div>
</template>
 
<script>
export default {
  methods: {
    cancel() {
      this.$emit("close");
    },
    confirm() {
      this.$emit("confirm");
    },
  },
};
</script>
 
<style lang="scss" scoped >
.DelBox {
  position: fixed;
  box-sizing: border-box;
  padding: 20px;
  width: 208px;
  height: 104px;
  top: 42%;
  left: 50%;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.05),
    0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 5px 5px -3px rgba(0, 0, 0, 0.1);
  z-index: 1;
 
  .title {
    margin-bottom: 20px;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
 
    .el-icon-warning {
      font-size: 18px;
      color: rgb(255, 75, 51);
    }
  }
 
  .buttonArea {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 24px;
    font-size: 12px;
    text-align: center;
 
    .cancel {
      margin-right: 10px;
      width: 40px;
      height: 24px;
      border: 1px solid #0064ff;
      border-radius: 3px;
      color: #0064ff;
      cursor: pointer;
    }
 
    .confirm {
      width: 64px;
      height: 24px;
      color: #fff;
      background: #0064ff;
      border-radius: 3px;
      border: 1px solid #0064ff;
      cursor: pointer;
    }
  }
}
</style>