zs
2025-04-29 e5ff622848b3af0d00fb1b4ec165513cca11878d
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<template>
  <el-dialog
    :class="className"
    :show-close="false"
    width="897px"
    v-bind="attrs"
  >
    <slot></slot>
    <template #footer>
      <slot name="footer"></slot>
    </template>
    <template #header>
      <slot name="title"></slot>
    </template>
  </el-dialog>
</template>
<script lang="ts" setup>
import { useAttrs, computed } from 'vue'
const attrs = useAttrs()
const className = computed(() => {
  if (attrs.class) {
    return `information-dialog ${attrs.class}`
  }
  return 'information-dialog'
})
</script>
<style lang="scss">
.information-dialog {
  background-color: #fff !important;
  border-radius: 6px;
  overflow: hidden;
 
  .cs-dialog__body {
    padding: 20px 28px 20px 30px;
  }
  .cs-dialog__header {
    background-color: #edeff0 !important;
    line-height: 42px;
    height: 42px;
    padding: 10px 20px;
    margin-right: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    .cs-dialog__title {
      color: #35363b !important;
      font-size: 15px;
      line-height: 0;
    }
  }
  .cs-dialog__headerbtn {
    display: none;
  }
 
  .cs-input__inner:not(el-overwrite-ignore *) {
    background-color: transparent !important;
    color: #35363b !important;
  }
 
  .cs-input__inner:hover {
    box-shadow: none !important;
  }
 
  .cs-input__inner:focus {
    box-shadow: none !important;
  }
 
  .cs-input.is-disabled .cs-input__inner {
    box-shadow: none !important;
    color: #999 !important;
  }
 
  .cs-input-group__append,
  .cs-input-group__prepend {
    padding: 0 14px !important;
  }
 
  .cs-input-group {
    box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color))
      inset !important;
    border-radius: 3px !important;
  }
 
  .cs-input {
    box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color))
      inset !important;
    border-radius: 3px !important;
  }
 
  .cs-input.is-focus .cs-input__inner {
    box-shadow: none !important;
  }
 
  .cs-dialog__footer {
    .cs-button--default,
    .cs-button {
      line-height: 26px;
      height: 26px;
      min-width: 110px;
      border: 1px solid #cccccd;
      background-color: #efeded;
      color: #666666;
 
      &:hover {
        opacity: 0.8;
      }
 
      &.cs-button--primary {
        border: 1px solid #5a84ff;
        background-color: #5a84ff;
        color: #fff;
      }
 
      &.cs-button--info {
        border: 1px solid #8b9ca4;
        background-color: #8b9ca4;
        color: #fff;
      }
    }
  }
}
</style>