|
|
@ -214,19 +214,19 @@ const dropEvent = (event: DragEvent) => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<template v-if="((renderData && renderData.length) || isEmbed) && displayField && calendarRange[0].fk_from_col"> |
|
|
|
<template v-if="((renderData && renderData.length) || isEmbed) && displayField"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="calDataType === UITypes.Date" |
|
|
|
v-if="calDataType === UITypes.Date" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'h-calc(100vh-10.8rem) overflow-y-auto nc-scrollbar-md': !props.isEmbed, |
|
|
|
'h-calc(100vh-10.8rem) overflow-y-auto nc-scrollbar-md': !isEmbed, |
|
|
|
'border-r-1 h-full border-gray-200 hover:bg-gray-50 ': props.isEmbed, |
|
|
|
'border-r-1 h-full border-gray-200 hover:bg-gray-50 ': isEmbed, |
|
|
|
'bg-gray-50': props.isEmbed && dayjs(selectedDate).isSame(props.renderDate, 'day'), |
|
|
|
'bg-gray-50': isEmbed && dayjs(selectedDate).isSame(renderDate, 'day'), |
|
|
|
}" |
|
|
|
}" |
|
|
|
class="flex flex-col pt-3 !gap-2 h-full w-full" |
|
|
|
class="flex flex-col pt-3 !gap-2 h-full w-full" |
|
|
|
@click=" |
|
|
|
@click=" |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
if (props.renderDate) { |
|
|
|
if (renderDate) { |
|
|
|
selectedDate = props.renderDate |
|
|
|
selectedDate = renderDate |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
" |
|
|
|
" |
|
|
@ -247,8 +247,8 @@ const dropEvent = (event: DragEvent) => { |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-else-if="calDataType === UITypes.DateTime" |
|
|
|
v-else-if="calDataType === UITypes.DateTime" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'h-calc(100vh-10.8rem) overflow-y-auto nc-scrollbar-md': !props.isEmbed, |
|
|
|
'h-calc(100vh-10.8rem) overflow-y-auto nc-scrollbar-md': !isEmbed, |
|
|
|
'border-r-1 h-full border-gray-200 ': props.isEmbed, |
|
|
|
'border-r-1 h-full border-gray-200 ': isEmbed, |
|
|
|
}" |
|
|
|
}" |
|
|
|
class="flex flex-col w-full" |
|
|
|
class="flex flex-col w-full" |
|
|
|
> |
|
|
|
> |
|
|
@ -257,7 +257,7 @@ const dropEvent = (event: DragEvent) => { |
|
|
|
v-for="(hour, index) in hours" |
|
|
|
v-for="(hour, index) in hours" |
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'!border-brand-500': dayjs(hour).isSame(selectedTime) && !props.isEmbed, |
|
|
|
'!border-brand-500': dayjs(hour).isSame(selectedTime) && !isEmbed, |
|
|
|
}" |
|
|
|
}" |
|
|
|
class="flex w-full min-h-20 relative border-1 group hover:bg-gray-50 border-white border-b-gray-100" |
|
|
|
class="flex w-full min-h-20 relative border-1 group hover:bg-gray-50 border-white border-b-gray-100" |
|
|
|
@click=" |
|
|
|
@click=" |
|
|
@ -303,7 +303,7 @@ const dropEvent = (event: DragEvent) => { |
|
|
|
<LazySmartsheetRow :row="record"> |
|
|
|
<LazySmartsheetRow :row="record"> |
|
|
|
<LazySmartsheetCalendarRecordCard |
|
|
|
<LazySmartsheetCalendarRecordCard |
|
|
|
:key="rowIndex" |
|
|
|
:key="rowIndex" |
|
|
|
:date="dayjs(record.row[calendarRange[0].fk_from_col.title]).format('H:mm')" |
|
|
|
:date="dayjs(record.row[record.rowMeta.range.fk_from_col.title]).format('H:mm')" |
|
|
|
:name="record.row[displayField.title]" |
|
|
|
:name="record.row[displayField.title]" |
|
|
|
:position="getRecordPosition(record)" |
|
|
|
:position="getRecordPosition(record)" |
|
|
|
class="!h-full" |
|
|
|
class="!h-full" |
|
|
|