|
|
@ -1,6 +1,7 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import type { VNodeRef } from '@vue/runtime-core' |
|
|
|
import type { VNodeRef } from '@vue/runtime-core' |
|
|
|
import { UITypes } from 'nocodb-sdk' |
|
|
|
import { UITypes } from 'nocodb-sdk' |
|
|
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
import { computed, ref } from '#imports' |
|
|
|
import { computed, ref } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ |
|
|
|
const props = defineProps<{ |
|
|
@ -162,7 +163,7 @@ const sideBarListScrollHandle = useDebounceFn(async (e: Event) => { |
|
|
|
<template v-else-if="formattedSideBarData.length > 0"> |
|
|
|
<template v-else-if="formattedSideBarData.length > 0"> |
|
|
|
<LazySmartsheetRow v-for="(record, rowIndex) in formattedSideBarData" :key="rowIndex" :row="record"> |
|
|
|
<LazySmartsheetRow v-for="(record, rowIndex) in formattedSideBarData" :key="rowIndex" :row="record"> |
|
|
|
<LazySmartsheetCalendarSideRecordCard |
|
|
|
<LazySmartsheetCalendarSideRecordCard |
|
|
|
:date="record.row[calendarRange[0] ? calendarRange[0].fk_from_col.title : '']" |
|
|
|
:date="dayjs(record.row[calendarRange[0] ? calendarRange[0].fk_from_col.title : '']).format('YYYY-MM-DD HH:mm')" |
|
|
|
:name="record.row[displayField.title]" |
|
|
|
:name="record.row[displayField.title]" |
|
|
|
color="blue" |
|
|
|
color="blue" |
|
|
|
@click="emit('expand-record', record)" |
|
|
|
@click="emit('expand-record', record)" |
|
|
|