zjf
2023-03-08 51468f93275c2bcfcc7ad25bf05f3d6a079ff764
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
<template>
  <div class="cell">
    <div class="div-flex">
      <div style="flex:1;">
        <div class="cell-title">{{ title }}</div>
        <div class="cell-detail">{{ detail }}</div>
      </div>
      <div style="flex-shrink:0;">
        <slot name="value"/>
        <div class="cell-time">{{ time }}</div>
      </div>
    </div>
  </div>
</template>
 
<script type="text/javascript">
export default {
  name: 'DetailsCell', // 标题  详情  时间 常用布局
  components: {},
  props: {
    title: {
      type: String,
      default: ''
    },
    detail: {
      type: String,
      default: ''
    },
    time: {
      type: String,
      default: ''
    }
  },
  data () {
    return {}
  },
  computed: {},
  mounted () {},
  methods: {}
}
</script>
<style lang="less" scoped>
.cell {
  padding: 10px 15px;
  position: relative;
  background-color: white;
}
.cell:before {
  content: ' ';
  position: absolute;
  top: 0;
  right: 0;
  height: 1px;
  border-top: 1px solid #e5e5e5;
  color: #e5e5e5;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
  left: 15px;
  z-index: 2;
}
.cell:first-child:before {
  display: none;
}
.div-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.cell-title {
  color: #333333;
  font-size: 13px;
}
.cell-detail {
  color: #999999;
  font-size: 12px;
  margin-top: 8px;
}
.cell-time {
  color: #333333;
  font-size: 13px;
}
</style>