mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
code refactor
This commit is contained in:
@@ -19,8 +19,8 @@
|
|||||||
<template #title>
|
<template #title>
|
||||||
<small>{{ currentLongYearMonth }}</small>
|
<small>{{ currentLongYearMonth }}</small>
|
||||||
<small class="transaction-amount-statistics">
|
<small class="transaction-amount-statistics">
|
||||||
<span class="text-income">{{ `+${getDisplayAmount('12345')}` }}</span>
|
<span class="text-income">{{ `+${formatAmountWithCurrency('12345')}` }}</span>
|
||||||
<span class="text-expense">{{ `-${getDisplayAmount('67890')}` }}</span>
|
<span class="text-expense">{{ `-${formatAmountWithCurrency('67890')}` }}</span>
|
||||||
</small>
|
</small>
|
||||||
<f7-icon class="combination-list-chevron-icon" f7="chevron_up"></f7-icon>
|
<f7-icon class="combination-list-chevron-icon" f7="chevron_up"></f7-icon>
|
||||||
</template>
|
</template>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item-after">
|
<div class="item-after">
|
||||||
<div class="transaction-amount">
|
<div class="transaction-amount">
|
||||||
<span>{{ getDisplayAmount('12345') }}</span>
|
<span>{{ formatAmountWithCurrency('12345') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -145,10 +145,6 @@ function getFontSizeName(): string {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDisplayAmount(value: string): string {
|
|
||||||
return formatAmountWithCurrency(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function setFontSize(): void {
|
function setFontSize(): void {
|
||||||
const router = props.f7router;
|
const router = props.f7router;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user