zhengyiming
2025-02-10 958b79ed89b9e742540f714a80261d222c0fc09b
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
<template>
  <div class="transaction-table-wrapper">
    <div class="transaction-table-title">
      <div class="transaction-table-title-left">
        <slot name="titleLeft"></slot>
      </div>
      <div class="transaction-table-title-right ellipsis">
        <slot name="titleRight"></slot>
      </div>
    </div>
    <div class="transaction-table-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'TransactionTable',
});
 
type Props = {};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.transaction-table-wrapper {
  margin-top: 16px;
 
  .transaction-table-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background-color: #f5f5f5;
 
    .transaction-table-title-left {
      font-size: 14px;
      line-height: 20px;
      color: getCssVar('text-color', 'primary');
    }
 
    .transaction-table-title-right {
      font-size: 14px;
      line-height: 20px;
      color: getCssVar('text-color', 'secondary');
    }
  }
 
  .transaction-table-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    align-items: center;
    border: #e8e8e8 1px solid;
    border-top: none;
  }
}
</style>