|
|
@ -5,7 +5,7 @@ import type { Row } from '~/lib' |
|
|
|
import { computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports' |
|
|
|
import { computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports' |
|
|
|
import { generateRandomNumber, isRowEmpty } from '~/utils' |
|
|
|
import { generateRandomNumber, isRowEmpty } from '~/utils' |
|
|
|
|
|
|
|
|
|
|
|
const emits = defineEmits(['expandRecord']) |
|
|
|
const emits = defineEmits(['expandRecord', 'newRecord']) |
|
|
|
|
|
|
|
|
|
|
|
const { selectedDateRange, formattedData, formattedSideBarData, calendarRange, selectedDate, displayField, updateRowProperty } = |
|
|
|
const { selectedDateRange, formattedData, formattedSideBarData, calendarRange, selectedDate, displayField, updateRowProperty } = |
|
|
|
useCalendarViewStoreOrThrow() |
|
|
|
useCalendarViewStoreOrThrow() |
|
|
@ -529,7 +529,7 @@ const addRecord = (date: dayjs.Dayjs) => { |
|
|
|
[fromCol.title!]: date.format('YYYY-MM-DD HH:mm:ssZ'), |
|
|
|
[fromCol.title!]: date.format('YYYY-MM-DD HH:mm:ssZ'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
emits('new-record', newRecord) |
|
|
|
emits('newRecord', newRecord) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
@ -586,7 +586,7 @@ const addRecord = (date: dayjs.Dayjs) => { |
|
|
|
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')" |
|
|
|
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')" |
|
|
|
:selected="dragRecord?.rowMeta?.id === record.rowMeta.id" |
|
|
|
:selected="dragRecord?.rowMeta?.id === record.rowMeta.id" |
|
|
|
color="blue" |
|
|
|
color="blue" |
|
|
|
@dblclick.stop="emits('expand-record', record)" |
|
|
|
@dblclick.stop="emits('expandRecord', record)" |
|
|
|
@resize-start="onResizeStart" |
|
|
|
@resize-start="onResizeStart" |
|
|
|
> |
|
|
|
> |
|
|
|
<template v-if="!isRowEmpty(record, displayField)"> |
|
|
|
<template v-if="!isRowEmpty(record, displayField)"> |
|
|
|