fix: leads/deals listview layout fix
This commit is contained in:
parent
112e92e3d3
commit
76e76bdec1
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<ListView
|
||||
:class="$attrs.class"
|
||||
:columns="columns"
|
||||
:rows="rows"
|
||||
:options="{
|
||||
@ -64,6 +65,7 @@
|
||||
<ListSelectBanner />
|
||||
</ListView>
|
||||
<ListFooter
|
||||
v-if="pageLengthCount"
|
||||
class="border-t px-5 py-2"
|
||||
v-model="pageLengthCount"
|
||||
:options="{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<ListView
|
||||
:class="$attrs.class"
|
||||
:columns="columns"
|
||||
:rows="rows"
|
||||
:options="{
|
||||
@ -87,6 +88,7 @@
|
||||
<ListSelectBanner />
|
||||
</ListView>
|
||||
<ListFooter
|
||||
v-if="pageLengthCount"
|
||||
class="border-t px-5 py-2"
|
||||
v-model="pageLengthCount"
|
||||
:options="{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<ListView
|
||||
:class="$attrs.class"
|
||||
:columns="columns"
|
||||
:rows="rows"
|
||||
:options="{
|
||||
@ -96,6 +97,7 @@
|
||||
<ListSelectBanner />
|
||||
</ListView>
|
||||
<ListFooter
|
||||
v-if="pageLengthCount"
|
||||
class="border-t px-5 py-2"
|
||||
v-model="pageLengthCount"
|
||||
:options="{
|
||||
|
||||
@ -171,8 +171,8 @@
|
||||
</template>
|
||||
<template #default="{ tab }">
|
||||
<DealsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Deals' && rows.length"
|
||||
class="mt-4"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
|
||||
@ -189,36 +189,34 @@
|
||||
</button>
|
||||
</template>
|
||||
<template #default="{ tab }">
|
||||
<div class="flex h-full">
|
||||
<LeadsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Leads' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<DealsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Deals' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<ContactsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Contacts' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<div
|
||||
v-if="!rows.length"
|
||||
class="grid flex-1 place-items-center text-xl font-medium text-gray-500"
|
||||
>
|
||||
<div class="flex flex-col items-center justify-center space-y-3">
|
||||
<component :is="tab.icon" class="!h-10 !w-10" />
|
||||
<div>No {{ tab.label }} Found</div>
|
||||
</div>
|
||||
<LeadsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Leads' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<DealsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Deals' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<ContactsListView
|
||||
class="mt-4"
|
||||
v-if="tab.label === 'Contacts' && rows.length"
|
||||
:rows="rows"
|
||||
:columns="columns"
|
||||
:options="{ selectable: false }"
|
||||
/>
|
||||
<div
|
||||
v-if="!rows.length"
|
||||
class="grid flex-1 place-items-center text-xl font-medium text-gray-500"
|
||||
>
|
||||
<div class="flex flex-col items-center justify-center space-y-3">
|
||||
<component :is="tab.icon" class="!h-10 !w-10" />
|
||||
<div>No {{ tab.label }} Found</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user