fix some bugs
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
<span class="shrink-0 rounded-md border px-1.5 py-0.5 text-xs font-600" :class="typeTagClass">
|
||||
{{ typeLabel }}
|
||||
</span>
|
||||
<span
|
||||
v-if="!isMoneyType && item.transaction_metal_label"
|
||||
class="shrink-0 rounded-md border border-amber-300 bg-amber-50 px-1.5 py-0.5 text-xs font-600 text-amber-700"
|
||||
>
|
||||
{{ item.transaction_metal_label }}
|
||||
</span>
|
||||
<span class="truncate text-sm font-700 text-gray-900">{{ item.type_str || '-' }}</span>
|
||||
</div>
|
||||
<span class="shrink-0 text-xs text-gray-400">{{ dateLabel }}</span>
|
||||
@@ -31,7 +37,7 @@ defineEmits<{
|
||||
}>()
|
||||
|
||||
const isMoneyType = computed(() => props.item.type === 4 || props.item.type === 3)
|
||||
const typeLabel = computed(() => (isMoneyType.value ? 'پول' : 'طلا'))
|
||||
const typeLabel = computed(() => (isMoneyType.value ? 'پول' : 'فلز'))
|
||||
const typeTagClass = computed(() =>
|
||||
isMoneyType.value
|
||||
? 'border-green-300 bg-green-50 text-green-700'
|
||||
|
||||
Reference in New Issue
Block a user