wupengfei
8 小时以前 47047d626ea8fab28c04e6534fe6ffa3dc61de69
packages/components/src/Card/TaskPrice.vue
@@ -1,11 +1,18 @@
<template>
  <div class="task-price">
    <div class="task-price-decimal">{{ value }}</div>
    <div
      class="task-price-decimal"
      v-if="!!billingMethod || billingMethod !== EnumBillingMethod.Face"
    >
      {{ value }}
    </div>
    <div class="task-price-unit">{{ unit }}</div>
  </div>
</template>
<script setup lang="ts">
import { EnumBillingMethod } from '@12333/constants';
defineOptions({
  name: 'TaskPrice',
});
@@ -13,6 +20,7 @@
type Props = {
  value?: number | string;
  unit?: string;
  billingMethod?: EnumBillingMethod;
};
const props = withDefaults(defineProps<Props>(), {});