he wei
2025-06-03 a10f3b82e33756ed0cd62a0cbe83bab8674df16f
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
<script setup name="Card">
import { ref } from "vue";
const props = defineProps({
  title: {
    type: String,
    default: ''
  }
});
 
</script>
 
<template>
  <div class="card pos-r">
    <div class="title ys-title" v-if="title">{{ title }}</div>
    <div class="tools">
      <slot name="tools"></slot>
    </div>
    <div class="content pos-r">
      <div class="pos-full">
        <slot></slot>
      </div>
    </div>
  </div>
</template>
 
<style scoped lang="less">
  .card {
    height: 100%;
    padding: 6px;
    display: flex;
    flex-direction: column;
 
    background: linear-gradient(#62cee3, #62cee3) left top e('/') 16px 1px no-repeat,
          linear-gradient(#62cee3, #62cee3) left top e('/') 1px 16px no-repeat,
          linear-gradient(#62cee3, #62cee3) right top e('/') 16px 1px no-repeat,
          linear-gradient(#62cee3, #62cee3) right top e('/') 1px 16px no-repeat,
          linear-gradient(#62cee3, #62cee3) left bottom e('/') 16px 1px no-repeat,
          linear-gradient(#62cee3, #62cee3) left bottom e('/') 1px 16px no-repeat,
          linear-gradient(#62cee3, #62cee3) right bottom e('/') 16px 1px no-repeat,
          linear-gradient(#62cee3, #62cee3) right bottom e('/') 1px 16px no-repeat,
 
          radial-gradient(farthest-side at center center, transparent, transparent 50%, rgba(25,59,99, 0.3) 100%, #193B63 180%, #193B63) left top e('/') contain no-repeat
          ;
    
    .title {
      padding-left: 1.4em;
      font-size: 24px;
      background: url("@/assets/images/tb1.png") 6px center e('/') auto 82% no-repeat;
    }
    .tools {
      position: absolute;
      top: 6px;
      right: 6px;
      display: flex;
      align-items: center;
    }
    .content {
      flex: 1;
    }
  }
</style>