fix bugs
This commit is contained in:
@@ -44,7 +44,16 @@
|
||||
|
||||
<div ref="listRef" :class="loading ? 'min-h-[50vh]' : ''" class="mt-5">
|
||||
<list-anim v-if="!loading">
|
||||
<Item v-for="item in items" :key="item.id" :item="item" />
|
||||
<template v-if="activeTab.fetchMode === 'physical'">
|
||||
<RequestItem
|
||||
v-for="item in physicalItems"
|
||||
:key="item.id"
|
||||
:item="item"
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<Item v-for="item in items" :key="item.id" :item="item" />
|
||||
</template>
|
||||
<div :ref="bindMobileObserver" class="w-full opacity-0 relative">
|
||||
در حال بارگذاری
|
||||
</div>
|
||||
@@ -55,7 +64,7 @@
|
||||
<TransactionSkeleton v-for="i in 8" :key="i" class="mt-1" />
|
||||
</template>
|
||||
|
||||
<div v-if="!loading && items.length === 0" class="dtxn-empty">
|
||||
<div v-if="!loading && listEmpty" class="dtxn-empty">
|
||||
<img :src="emptyImage" alt="" class="dtxn-empty__image" />
|
||||
<p class="dtxn-empty__text">{{ emptyText }}</p>
|
||||
</div>
|
||||
@@ -72,6 +81,7 @@ import ListAnim from '@/components/ListAnim.vue'
|
||||
import TransactionSkeleton from '@/components/TransactionSkeleton.vue'
|
||||
import emptyImage from '@/assets/img/cash_empty.svg'
|
||||
import Item from './components/Item.vue'
|
||||
import RequestItem from '@/views/base/physicalReceive/components/RequestItem.vue'
|
||||
import BoursecuTransactionFilters from './components/BoursecuTransactionFilters.vue'
|
||||
import { BOURSECU_TRANSACTION_TABS } from './config/boursecuTabs'
|
||||
import { useTransactionsPageContext } from './composables/useTransactionsPage'
|
||||
@@ -80,10 +90,12 @@ const listRef = ref<HTMLElement | null>(null)
|
||||
|
||||
const {
|
||||
items,
|
||||
physicalItems,
|
||||
activeTabId,
|
||||
tradeSide,
|
||||
activeTab,
|
||||
emptyText,
|
||||
listEmpty,
|
||||
setActiveTab,
|
||||
setTradeSide,
|
||||
bindMobileObserver,
|
||||
|
||||
Reference in New Issue
Block a user