Browse Source

fix(nc-gui): date field is configured, do not show time

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
7c7fc86cdd
  1. 6
      packages/nc-gui/components/smartsheet/calendar/SideMenu.vue

6
packages/nc-gui/components/smartsheet/calendar/SideMenu.vue

@ -163,7 +163,11 @@ const sideBarListScrollHandle = useDebounceFn(async (e: Event) => {
<template v-else-if="formattedSideBarData.length > 0">
<LazySmartsheetRow v-for="(record, rowIndex) in formattedSideBarData" :key="rowIndex" :row="record">
<LazySmartsheetCalendarSideRecordCard
:date="dayjs(record.row[calendarRange[0] ? calendarRange[0].fk_from_col.title : '']).format('YYYY-MM-DD HH:mm')"
:date="
calDataType === UITypes.DateTime
? dayjs(record.row[calendarRange[0] ? calendarRange[0].fk_from_col.title : '']).format('DD-MM-YYYY HH:mm')
: dayjs(record.row[calendarRange[0] ? calendarRange[0].fk_from_col.title : '']).format('DD-MM-YYYY')
"
:name="record.row[displayField.title]"
color="blue"
@click="emit('expand-record', record)"

Loading…
Cancel
Save