ke_junjie
2025-06-04 bb6e2230bb8ded3c5546bc4e4c282ee343754475
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
<template>
  <div class="viewdata fixed width height overflow">
    <div class="box-modal borderR8">
      <div class="title-modal">
        <p class="p-title">
          <slot name="title"></slot>
        </p>
        <i class="el-icon-close pointer fontSize1_2" @click="$emit('cancel')"></i>
      </div>
      <div class="centent-modal">
        <!-- <el-scrollbar wrap-class="scrollbar-wrapper" style="height:100%"> -->
        <slot name="centent"></slot>
        <!-- </el-scrollbar> -->
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  data() {
    return {};
  },
 
  mounted() {},
  methods: {},
  watch: {}
};
</script>
 
<style lang="scss" scoped>
.viewdata {
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  .box-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45%;
    height: 60%;
    border-radius: 6px;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 4px #345;
    // transition: all 0.5s;
    overflow: hidden;
    .title-modal {
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #e6eaf1;
      background: #f5f7fa;
      .p-title {
        font-size: 20px;
        padding-left: 5px;
      }
      .fontSize1_2 {
        font-size: 20px;
        margin-right: 15px;
        &:hover {
          transition: all 0.3s;
          transform: rotate(360deg);
        }
      }
    }
    .centent-modal {
      width: 98%;
      height: calc(100% - 62px);
      padding: 1%;
      overflow: hidden;
    }
  }
}
</style>