zhengyiming
6 天以前 3673993e2eb02c052c40746412adcc088727b12c
packages/components/src/Card/TaskPrice.vue
@@ -1,17 +1,23 @@
<template>
  <div class="task-price">
    <div class="task-price-decimal">{{ value }}</div>
    <div class="task-price-unit">元/小时</div>
    <div class="task-price-decimal" v-if="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',
});
type Props = {
  value?: number;
  value?: number | string;
  unit?: string;
  billingMethod?: EnumBillingMethod;
};
const props = withDefaults(defineProps<Props>(), {});