fix: removed layout header from listview component
This commit is contained in:
parent
0bc62cfbc7
commit
2b22f96058
@ -1,39 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<LayoutHeader>
|
|
||||||
<template #left-header>
|
|
||||||
<Breadcrumbs :items="[{ label: list.title }]" />
|
|
||||||
</template>
|
|
||||||
<template #right-header>
|
|
||||||
<Button variant="solid" label="Create">
|
|
||||||
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
|
|
||||||
</Button>
|
|
||||||
</template>
|
|
||||||
<template #left-subheader>
|
|
||||||
<Dropdown :options="viewsDropdownOptions">
|
|
||||||
<template #default="{ open }">
|
|
||||||
<Button :label="currentView.label">
|
|
||||||
<template #prefix
|
|
||||||
><FeatherIcon :name="currentView.icon" class="h-4"
|
|
||||||
/></template>
|
|
||||||
<template #suffix
|
|
||||||
><FeatherIcon
|
|
||||||
:name="open ? 'chevron-up' : 'chevron-down'"
|
|
||||||
class="h-4"
|
|
||||||
/></template>
|
|
||||||
</Button>
|
|
||||||
</template>
|
|
||||||
</Dropdown>
|
|
||||||
</template>
|
|
||||||
<template #right-subheader>
|
|
||||||
<Button label="Sort">
|
|
||||||
<template #prefix><SortIcon class="h-4" /></template>
|
|
||||||
</Button>
|
|
||||||
<Button label="Filter">
|
|
||||||
<template #prefix><FilterIcon class="h-4" /></template>
|
|
||||||
</Button>
|
|
||||||
<Button icon="more-horizontal" />
|
|
||||||
</template>
|
|
||||||
</LayoutHeader>
|
|
||||||
<div id="content" class="flex flex-col w-full overflow-x-auto flex-1">
|
<div id="content" class="flex flex-col w-full overflow-x-auto flex-1">
|
||||||
<div class="flex flex-col overflow-y-hidden w-max min-w-full">
|
<div class="flex flex-col overflow-y-hidden w-max min-w-full">
|
||||||
<div
|
<div
|
||||||
@ -41,7 +6,7 @@
|
|||||||
class="flex space-x-4 items-center px-5 py-2 border-b"
|
class="flex space-x-4 items-center px-5 py-2 border-b"
|
||||||
>
|
>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
class="[&>input]:duration-300 [&>input]:cursor-pointer"
|
class="duration-300 cursor-pointer"
|
||||||
:modelValue="allRowsSelected"
|
:modelValue="allRowsSelected"
|
||||||
@click.stop="toggleAllRows"
|
@click.stop="toggleAllRows"
|
||||||
/>
|
/>
|
||||||
@ -69,7 +34,7 @@
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
:modelValue="selections.has(row[rowKey])"
|
:modelValue="selections.has(row[rowKey])"
|
||||||
@click.stop="toggleRow(row[rowKey])"
|
@click.stop="toggleRow(row[rowKey])"
|
||||||
class="[&>input]:duration-300 [&>input]:cursor-pointer"
|
class="duration-300 cursor-pointer"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-for="column in columns"
|
v-for="column in columns"
|
||||||
@ -127,7 +92,7 @@
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
:modelValue="true"
|
:modelValue="true"
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
class="[&>input]:text-gray-900"
|
class="text-gray-900"
|
||||||
/>
|
/>
|
||||||
<div>{{ selectedText }}</div>
|
<div>{{ selectedText }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -150,14 +115,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { FeatherIcon, Dropdown, Checkbox, Avatar } from 'frappe-ui'
|
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
||||||
import SortIcon from './Icons/SortIcon.vue'
|
import ListRowItem from '@/components/ListRowItem.vue'
|
||||||
import FilterIcon from './Icons/FilterIcon.vue'
|
import { Checkbox, Avatar } from 'frappe-ui'
|
||||||
import IndicatorIcon from './Icons/IndicatorIcon.vue'
|
import { reactive, computed } from 'vue'
|
||||||
import { reactive, ref, computed } from 'vue'
|
|
||||||
import LayoutHeader from './LayoutHeader.vue'
|
|
||||||
import Breadcrumbs from './Breadcrumbs.vue'
|
|
||||||
import ListRowItem from './ListRowItem.vue'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
list: {
|
list: {
|
||||||
@ -178,54 +139,6 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentView = ref({
|
|
||||||
label: 'List',
|
|
||||||
icon: 'list',
|
|
||||||
})
|
|
||||||
|
|
||||||
const viewsDropdownOptions = [
|
|
||||||
{
|
|
||||||
label: 'List',
|
|
||||||
icon: 'list',
|
|
||||||
onClick() {
|
|
||||||
currentView.value = {
|
|
||||||
label: 'List',
|
|
||||||
icon: 'list',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Table',
|
|
||||||
icon: 'grid',
|
|
||||||
onClick() {
|
|
||||||
currentView.value = {
|
|
||||||
label: 'Table',
|
|
||||||
icon: 'grid',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Calender',
|
|
||||||
icon: 'calendar',
|
|
||||||
onClick() {
|
|
||||||
currentView.value = {
|
|
||||||
label: 'Calender',
|
|
||||||
icon: 'calendar',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Board',
|
|
||||||
icon: 'columns',
|
|
||||||
onClick() {
|
|
||||||
currentView.value = {
|
|
||||||
label: 'Board',
|
|
||||||
icon: 'columns',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
function getValue(value) {
|
function getValue(value) {
|
||||||
if (value && typeof value === 'object') {
|
if (value && typeof value === 'object') {
|
||||||
value.label = value.full_name || value.label
|
value.label = value.full_name || value.label
|
||||||
|
|||||||
@ -1,13 +1,52 @@
|
|||||||
<template>
|
<template>
|
||||||
<ListView :list="list_details" :columns="columns" :rows="rows" row-key="name" />
|
<LayoutHeader>
|
||||||
|
<template #left-header>
|
||||||
|
<Breadcrumbs :items="[{ label: list.title }]" />
|
||||||
|
</template>
|
||||||
|
<template #right-header>
|
||||||
|
<Button variant="solid" label="Create">
|
||||||
|
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
<template #left-subheader>
|
||||||
|
<Dropdown :options="viewsDropdownOptions">
|
||||||
|
<template #default="{ open }">
|
||||||
|
<Button :label="currentView.label">
|
||||||
|
<template #prefix
|
||||||
|
><FeatherIcon :name="currentView.icon" class="h-4"
|
||||||
|
/></template>
|
||||||
|
<template #suffix
|
||||||
|
><FeatherIcon
|
||||||
|
:name="open ? 'chevron-up' : 'chevron-down'"
|
||||||
|
class="h-4"
|
||||||
|
/></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
</Dropdown>
|
||||||
|
</template>
|
||||||
|
<template #right-subheader>
|
||||||
|
<Button label="Sort">
|
||||||
|
<template #prefix><SortIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button label="Filter">
|
||||||
|
<template #prefix><FilterIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button icon="more-horizontal" />
|
||||||
|
</template>
|
||||||
|
</LayoutHeader>
|
||||||
|
<ListView :list="list" :columns="columns" :rows="rows" row-key="name" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ListView from '@/components/ListView.vue'
|
import ListView from '@/components/ListView.vue'
|
||||||
import { computed } from 'vue'
|
import LayoutHeader from '@/components/LayoutHeader.vue'
|
||||||
import { createListResource } from 'frappe-ui'
|
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
||||||
|
import SortIcon from '@/components/Icons/SortIcon.vue'
|
||||||
|
import FilterIcon from '@/components/Icons/FilterIcon.vue'
|
||||||
|
import { FeatherIcon, Button, Dropdown, createListResource } from 'frappe-ui'
|
||||||
|
import { ref, computed } from 'vue'
|
||||||
|
|
||||||
const list_details = {
|
const list = {
|
||||||
title: 'Contacts',
|
title: 'Contacts',
|
||||||
plural_label: 'Contacts',
|
plural_label: 'Contacts',
|
||||||
singular_label: 'Contact',
|
singular_label: 'Contact',
|
||||||
@ -22,7 +61,6 @@ const contacts = createListResource({
|
|||||||
pageLength: 999,
|
pageLength: 999,
|
||||||
auto: true,
|
auto: true,
|
||||||
})
|
})
|
||||||
contacts.fetch()
|
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@ -59,4 +97,52 @@ const rows = computed(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const currentView = ref({
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
})
|
||||||
|
|
||||||
|
const viewsDropdownOptions = [
|
||||||
|
{
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,13 +1,102 @@
|
|||||||
<template>
|
<template>
|
||||||
<ListView :list="list_details"/>
|
<LayoutHeader>
|
||||||
|
<template #left-header>
|
||||||
|
<Breadcrumbs :items="[{ label: list.title }]" />
|
||||||
|
</template>
|
||||||
|
<template #right-header>
|
||||||
|
<Button variant="solid" label="Create">
|
||||||
|
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
<template #left-subheader>
|
||||||
|
<Dropdown :options="viewsDropdownOptions">
|
||||||
|
<template #default="{ open }">
|
||||||
|
<Button :label="currentView.label">
|
||||||
|
<template #prefix
|
||||||
|
><FeatherIcon :name="currentView.icon" class="h-4"
|
||||||
|
/></template>
|
||||||
|
<template #suffix
|
||||||
|
><FeatherIcon
|
||||||
|
:name="open ? 'chevron-up' : 'chevron-down'"
|
||||||
|
class="h-4"
|
||||||
|
/></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
</Dropdown>
|
||||||
|
</template>
|
||||||
|
<template #right-subheader>
|
||||||
|
<Button label="Sort">
|
||||||
|
<template #prefix><SortIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button label="Filter">
|
||||||
|
<template #prefix><FilterIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button icon="more-horizontal" />
|
||||||
|
</template>
|
||||||
|
</LayoutHeader>
|
||||||
|
<ListView :list="list" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ListView from '@/components/ListView.vue';
|
import ListView from '@/components/ListView.vue'
|
||||||
|
import LayoutHeader from '@/components/LayoutHeader.vue'
|
||||||
|
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
||||||
|
import SortIcon from '@/components/Icons/SortIcon.vue'
|
||||||
|
import FilterIcon from '@/components/Icons/FilterIcon.vue'
|
||||||
|
import { FeatherIcon, Button, Dropdown } from 'frappe-ui'
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
const list_details = {
|
const list = {
|
||||||
title: 'Deals',
|
title: 'Deals',
|
||||||
plural_label: 'Deals',
|
plural_label: 'Deals',
|
||||||
singular_label: 'Deal',
|
singular_label: 'Deal',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const currentView = ref({
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
})
|
||||||
|
|
||||||
|
const viewsDropdownOptions = [
|
||||||
|
{
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,13 +1,102 @@
|
|||||||
<template>
|
<template>
|
||||||
<ListView :list="list_details"/>
|
<LayoutHeader>
|
||||||
|
<template #left-header>
|
||||||
|
<Breadcrumbs :items="[{ label: list.title }]" />
|
||||||
|
</template>
|
||||||
|
<template #right-header>
|
||||||
|
<Button variant="solid" label="Create">
|
||||||
|
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
<template #left-subheader>
|
||||||
|
<Dropdown :options="viewsDropdownOptions">
|
||||||
|
<template #default="{ open }">
|
||||||
|
<Button :label="currentView.label">
|
||||||
|
<template #prefix
|
||||||
|
><FeatherIcon :name="currentView.icon" class="h-4"
|
||||||
|
/></template>
|
||||||
|
<template #suffix
|
||||||
|
><FeatherIcon
|
||||||
|
:name="open ? 'chevron-up' : 'chevron-down'"
|
||||||
|
class="h-4"
|
||||||
|
/></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
</Dropdown>
|
||||||
|
</template>
|
||||||
|
<template #right-subheader>
|
||||||
|
<Button label="Sort">
|
||||||
|
<template #prefix><SortIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button label="Filter">
|
||||||
|
<template #prefix><FilterIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button icon="more-horizontal" />
|
||||||
|
</template>
|
||||||
|
</LayoutHeader>
|
||||||
|
<ListView :list="list" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ListView from '@/components/ListView.vue';
|
import ListView from '@/components/ListView.vue'
|
||||||
|
import LayoutHeader from '@/components/LayoutHeader.vue'
|
||||||
|
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
||||||
|
import SortIcon from '@/components/Icons/SortIcon.vue'
|
||||||
|
import FilterIcon from '@/components/Icons/FilterIcon.vue'
|
||||||
|
import { FeatherIcon, Button, Dropdown } from 'frappe-ui'
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
const list_details = {
|
const list = {
|
||||||
title: 'Inbox',
|
title: 'Inbox',
|
||||||
plural_label: 'Emails',
|
plural_label: 'Emails',
|
||||||
singular_label: 'Email',
|
singular_label: 'Email',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const currentView = ref({
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
})
|
||||||
|
|
||||||
|
const viewsDropdownOptions = [
|
||||||
|
{
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,20 +1,64 @@
|
|||||||
<template>
|
<template>
|
||||||
<ListView :list="list_details" :columns="columns" :rows="rows" row-key="name" />
|
<LayoutHeader>
|
||||||
|
<template #left-header>
|
||||||
|
<Breadcrumbs :items="[{ label: list.title }]" />
|
||||||
|
</template>
|
||||||
|
<template #right-header>
|
||||||
|
<Button variant="solid" label="Create">
|
||||||
|
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
<template #left-subheader>
|
||||||
|
<Dropdown :options="viewsDropdownOptions">
|
||||||
|
<template #default="{ open }">
|
||||||
|
<Button :label="currentView.label">
|
||||||
|
<template #prefix
|
||||||
|
><FeatherIcon :name="currentView.icon" class="h-4"
|
||||||
|
/></template>
|
||||||
|
<template #suffix
|
||||||
|
><FeatherIcon
|
||||||
|
:name="open ? 'chevron-up' : 'chevron-down'"
|
||||||
|
class="h-4"
|
||||||
|
/></template>
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
|
</Dropdown>
|
||||||
|
</template>
|
||||||
|
<template #right-subheader>
|
||||||
|
<Button label="Sort">
|
||||||
|
<template #prefix><SortIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button label="Filter">
|
||||||
|
<template #prefix><FilterIcon class="h-4" /></template>
|
||||||
|
</Button>
|
||||||
|
<Button icon="more-horizontal" />
|
||||||
|
</template>
|
||||||
|
</LayoutHeader>
|
||||||
|
<ListView :list="list" :columns="columns" :rows="rows" row-key="name" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ListView from '@/components/ListView.vue'
|
import ListView from '@/components/ListView.vue'
|
||||||
import { computed } from 'vue'
|
import LayoutHeader from '@/components/LayoutHeader.vue'
|
||||||
import { createListResource } from 'frappe-ui'
|
import Breadcrumbs from '@/components/Breadcrumbs.vue'
|
||||||
|
import SortIcon from '@/components/Icons/SortIcon.vue'
|
||||||
|
import FilterIcon from '@/components/Icons/FilterIcon.vue'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
|
import { FeatherIcon, Button, Dropdown, createListResource } from 'frappe-ui'
|
||||||
|
import { ref, computed } from 'vue'
|
||||||
|
|
||||||
const list_details = {
|
const list = {
|
||||||
title: 'Leads',
|
title: 'Leads',
|
||||||
plural_label: 'Leads',
|
plural_label: 'Leads',
|
||||||
singular_label: 'Lead',
|
singular_label: 'Lead',
|
||||||
}
|
}
|
||||||
const { getUser } = usersStore()
|
const { getUser } = usersStore()
|
||||||
|
|
||||||
|
const currentView = ref({
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
})
|
||||||
|
|
||||||
const leads = createListResource({
|
const leads = createListResource({
|
||||||
type: 'list',
|
type: 'list',
|
||||||
doctype: 'CRM Lead',
|
doctype: 'CRM Lead',
|
||||||
@ -100,6 +144,49 @@ const rows = computed(() => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const viewsDropdownOptions = [
|
||||||
|
{
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'List',
|
||||||
|
icon: 'list',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Table',
|
||||||
|
icon: 'grid',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Calender',
|
||||||
|
icon: 'calendar',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
onClick() {
|
||||||
|
currentView.value = {
|
||||||
|
label: 'Board',
|
||||||
|
icon: 'columns',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
const indicatorColor = {
|
const indicatorColor = {
|
||||||
New: 'text-gray-600',
|
New: 'text-gray-600',
|
||||||
'Contact made': 'text-orange-500',
|
'Contact made': 'text-orange-500',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user