0
0
Fork 0

feat: adapt to vnInputTime

This commit is contained in:
Alex Moreno 2024-07-02 07:56:32 +02:00
parent c15a909225
commit 7884df0acf
1 changed files with 5 additions and 8 deletions

View File

@ -8,7 +8,7 @@ const { t } = useI18n();
const route = useRoute();
const entityId = computed(() => route.params.id);
const columns = computed(() => [
const columns = [
{
align: 'left',
name: 'date',
@ -22,12 +22,9 @@ const columns = computed(() => [
label: t('worker.medical.tableVisibleColumns.time'),
create: true,
component: 'time',
// format: ({ time }) => {
// console.log('time: ', time);
// if (!time) return;
// const [hours, minutes] = time.split(':');
// return new Date(new Date().setHours(hours, minutes));
// },
attrs: {
timeOnly: true,
},
},
{
align: 'left',
@ -68,7 +65,7 @@ const columns = computed(() => [
create: true,
component: 'input',
},
]);
];
</script>
<template>
<VnTable