he wei
2025-05-21 4f2e7984e3f63ac3b869f7301cda7e74914922a1
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
<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;
      background: url("@/assets/images/tb1.png") 6px center e('/') auto 82% no-repeat;
    }
    .tools {
      position: absolute;
      top: 6px;
      right: 6px;
    }
    .content {
      flex: 1;
    }
  }
</style>