mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
support setting expense / income amount color
This commit is contained in:
@@ -561,8 +561,8 @@ export default {
|
||||
sourceAmountClass() {
|
||||
const classes = {
|
||||
'readonly': this.mode === 'view',
|
||||
'text-color-teal': this.transaction.type === this.allTransactionTypes.Expense,
|
||||
'text-color-red': this.transaction.type === this.allTransactionTypes.Income,
|
||||
'text-expense': this.transaction.type === this.allTransactionTypes.Expense,
|
||||
'text-income': this.transaction.type === this.allTransactionTypes.Income,
|
||||
'text-color-primary': this.transaction.type === this.allTransactionTypes.Transfer
|
||||
};
|
||||
|
||||
|
||||
@@ -137,10 +137,10 @@
|
||||
<span>{{ getDisplayYearMonth(transactionMonthList) }}</span>
|
||||
</small>
|
||||
<small class="transaction-amount-statistics" v-if="showTotalAmountInTransactionListPage && transactionMonthList.totalAmount">
|
||||
<span class="text-color-red">
|
||||
<span class="text-income">
|
||||
{{ getDisplayMonthTotalAmount(transactionMonthList.totalAmount.income, defaultCurrency, '+', transactionMonthList.totalAmount.incompleteIncome) }}
|
||||
</span>
|
||||
<span class="text-color-teal">
|
||||
<span class="text-expense">
|
||||
{{ getDisplayMonthTotalAmount(transactionMonthList.totalAmount.expense, defaultCurrency, '-', transactionMonthList.totalAmount.incompleteExpense) }}
|
||||
</span>
|
||||
</small>
|
||||
@@ -199,7 +199,7 @@
|
||||
</div>
|
||||
<div class="item-after">
|
||||
<div class="transaction-amount" v-if="transaction.sourceAccount"
|
||||
:class="{ 'text-color-teal': transaction.type === allTransactionTypes.Expense, 'text-color-red': transaction.type === allTransactionTypes.Income }">
|
||||
:class="{ 'text-expense': transaction.type === allTransactionTypes.Expense, 'text-income': transaction.type === allTransactionTypes.Income }">
|
||||
<span>{{ getTransactionDisplayAmount(transaction) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user