<template>
|
<div class="income-detail-list-item">
|
<div class="income-detail-list-item-inner" :class="{ 'border-none': !showBorder }">
|
<slot name="title">
|
<div class="income-detail-list-item-title">{{ title }}</div>
|
</slot>
|
<div class="income-detail-list-item-content">
|
<div class="income-detail-list-item-content-item">{{ item }}</div>
|
<div class="income-detail-list-item-content-value" v-if="showValue">{{ value }}</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script setup lang="ts">
|
defineOptions({
|
name: 'IncomeDetailListItem',
|
});
|
|
type Props = {
|
title?: string;
|
item?: string;
|
value?: string;
|
showValue?: boolean;
|
showBorder?: boolean;
|
};
|
|
const props = withDefaults(defineProps<Props>(), {
|
showValue: true,
|
showBorder: true,
|
});
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
|
.income-detail-list-item {
|
padding: 0 boleGetCssVar('size', 'body-padding-h');
|
|
.income-detail-list-item-inner {
|
padding: 24px 0 18px;
|
border-bottom: 1px solid #f6f6f6;
|
display: flex;
|
flex-direction: column;
|
|
&.border-none {
|
border-bottom: none;
|
}
|
|
.income-detail-list-item-title {
|
font-weight: 400;
|
font-size: 24px;
|
color: boleGetCssVar('text-color', 'primary');
|
line-height: 34px;
|
}
|
|
.income-detail-list-item-content {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
|
.income-detail-list-item-content-item {
|
font-weight: 400;
|
font-size: 20px;
|
color: boleGetCssVar('text-color', 'secondary');
|
line-height: 44px;
|
}
|
|
.income-detail-list-item-content-value {
|
font-weight: 500;
|
font-size: 30px;
|
color: boleGetCssVar('text-color', 'primary');
|
line-height: 44px;
|
}
|
}
|
}
|
}
|
</style>
|