wupengfei
2 天以前 e5f9316475049f99bc76e22f072a4cfe39a64670
packages/components/src/Card/TaskPrice.vue
@@ -1,17 +1,26 @@
<template>
  <div class="task-price">
    <div class="task-price-decimal">55</div>
    <div class="task-price-unit">元/小时</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',
});
type Props = {
  value?: number;
  value?: number | string;
  unit?: string;
  billingMethod?: EnumBillingMethod;
};
const props = withDefaults(defineProps<Props>(), {});
@@ -29,6 +38,7 @@
    font-size: 32px;
    line-height: 40px;
    margin-right: 8px;
    font-weight: 600;
  }
  .task-price-unit {