diff --git a/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue b/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue index 4f52e2d03d..46354817f5 100644 --- a/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue +++ b/packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue @@ -327,7 +327,8 @@ const isPublicShared = computed(() => { (activeView.type === ViewTypes.GRID || activeView.type === ViewTypes.KANBAN || activeView.type === ViewTypes.GALLERY || - activeView.type === ViewTypes.MAP) + activeView.type === ViewTypes.MAP || + activeView.type === ViewTypes.CALENDAR) " class="flex flex-row justify-between" > diff --git a/packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue b/packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue index c8a61ec90b..7e0e6ad519 100644 --- a/packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue +++ b/packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue @@ -88,6 +88,8 @@ const recordsAcrossAllRange = computed(() => { const dragElement = ref(null) +const hoverRecord = ref(null) + const dropEvent = (event: DragEvent) => { if (!isUIAllowed('dataEdit')) return event.preventDefault() @@ -175,7 +177,14 @@ const dropEvent = (event: DragEvent) => { class="w-full relative h-[calc(100vh-10.8rem)] overflow-y-auto nc-scrollbar-md" @drop="dropEvent" > -
+
() const dragTimeout = ref>() +const hoverRecord = ref(null) + const useDebouncedRowUpdate = useDebounceFn((row: Row, updateProperty: string[], isDelete: boolean) => { updateRowProperty(row, updateProperty, isDelete) }, 500) @@ -683,10 +685,13 @@ const viewMore = (hour: dayjs.Dayjs) => { :style="record.rowMeta.style" class="absolute draggable-record group cursor-pointer pointer-events-auto" @mousedown="dragStart($event, record)" + @mouseleave="hoverRecord = null" + @mouseover="hoverRecord = record.rowMeta.id" @dragover.prevent >