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
| <template>
| <div class="order-card-item">
| <div class="order-card-item-label" :style="{ width: labelWidth, textAlign: textAlign }">
| <slot name="label">{{ label }}</slot>
| </div>
| <div class="order-card-item-value">
| <slot name="value">{{ value }}</slot>
| </div>
| </div>
| </template>
|
| <script setup lang="ts">
| defineOptions({
| name: 'OrderCardItem',
| });
|
| type Props = {
| label: string;
| value: string;
| labelWidth?: any;
| textAlign?: any;
| };
|
| const props = withDefaults(defineProps<Props>(), {
| labelWidth: '80px',
| textAlign: 'left',
| });
| </script>
|
| <style lang="scss">
| .order-card-item {
| display: flex;
| font-size: 28px;
| line-height: 40px;
| margin-bottom: 15px;
|
| .order-card-item-label {
| color: #333333;
| }
|
| .order-card-item-value {
| color: #666666;
| flex: 1;
| min-width: 0;
| }
| }
| </style>
|
|