wupengfei
2025-03-11 286f1b727856d6b32a8d237f353ae008f3076deb
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
<template>
  <div class="task-price">
    <div class="task-price-decimal">{{ value }}</div>
    <div class="task-price-unit">{{ unit }}</div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'TaskPrice',
});
 
type Props = {
  value?: number;
  unit?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.task-price {
  display: flex;
  align-items: flex-end;
  color: boleGetCssVar('color', 'primary');
 
  .task-price-decimal {
    font-size: 32px;
    line-height: 40px;
    margin-right: 8px;
    font-weight: 600;
  }
 
  .task-price-unit {
    font-size: 20px;
    line-height: 32px;
  }
}
</style>