|
|
|
@ -3,13 +3,17 @@ |
|
|
|
<div class="statistic-number"> |
|
|
|
<div class="statistic-number"> |
|
|
|
{{ isDecimal ? parseFloat(outputValue.toFixed(2)) : parseInt(outputValue) }}{{ valueUnit }} |
|
|
|
{{ isDecimal ? parseFloat(outputValue.toFixed(2)) : parseInt(outputValue) }}{{ valueUnit }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="statistic-title">{{ title }}</div> |
|
|
|
<div class="statistic-title" :title="tooltip">{{ title }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script setup> |
|
|
|
<script setup> |
|
|
|
import {useTransition} from "@vueuse/core"; |
|
|
|
import {useTransition} from "@vueuse/core"; |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
const props = defineProps({ |
|
|
|
|
|
|
|
tooltip: { |
|
|
|
|
|
|
|
type: String, |
|
|
|
|
|
|
|
default: '', |
|
|
|
|
|
|
|
}, |
|
|
|
title: { |
|
|
|
title: { |
|
|
|
type: String |
|
|
|
type: String |
|
|
|
}, |
|
|
|
}, |
|
|
|
|