wupengfei
2025-02-24 fe5fc18b6b1810a61df6ed7d94957f449ca05488
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
<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"></style>