mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:33:32 +09:00
1.1 KiB
1.1 KiB
Scrollable columns
Vuero provides a custom table component called <VFlexTable />.
It looks like a table but is not an Html5 table.
Instead, it uses the flexbox technology and is fully responsive.
Check the markup for more details about usage.
<script setup lang="ts">
// this is our data
const data = [
{
id: 0,
company: 'Grubspot',
type: 'New Lead',
industry: 'Software',
status: 'Active',
contacts: [
{
id: 0,
picture: 'https://media.cssninja.io/content/avatars/25.jpg',
initials: 'AC',
color: 'info',
},
// and more contacts ..
],
},
// and more data ...
]
const columns = {
id: {
label: 'Identifier',
inverted: true,
format: value => `N°${value}`,
},
company: {
label: 'Company',
bold: true,
grow: true,
},
type: 'Type',
status: {
label: 'Contacts',
align: 'center',
},
contacts: {
label: 'Contacts',
align: 'end',
scrollX: true,
},
}
</script>
<template>
<VFlexTable
:data="data"
:columns="columns"
print-objects
/>
</template>