whychdw
2021-05-18 70bf38e79ff638d07b7a64979946ff1ebde50ab3
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
<template>
  <div class="test-card">
    <div class="test-card-title"><slot name="title">{{title}}</slot></div>
    <div class="test-card-content">
      <slot></slot>
    </div>
    <div class="test-card-footer" v-if="!noFooter">
      <slot name="footer"></slot>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "TestCard",
  props: {
    title: {
      type: String,
      default: ""
    },
    noFooter: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  methods: {
 
  },
  computed: {
 
  },
  mounted() {
 
  }
}
</script>
 
<style scoped>
.test-card {
  background-color: #FFFFFF;
  box-sizing: border-box;
  border: 1px solid #e2e2e2;
}
.test-card-title {
  background-color: rgb(242, 242, 242);
  line-height: 50px;
  padding-left: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #666666;
  font-family: "微软雅黑 Bold", "微软雅黑 Regular", 微软雅黑, sans-serif;
  box-sizing: border-box;
  border-bottom: 1px solid #e2e2e2;
}
.test-card-content {
  box-sizing: border-box;
  padding: 8px;
}
.test-card-footer {
  padding-right: 16px;
  box-sizing: border-box;
  border-top: 1px solid #e2e2e2;
}
</style>