Browse Source

fix(nc-gui): lint

pull/7836/head
DarkPhoenix2704 10 months ago
parent
commit
08e86dee5c
  1. 4
      packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue
  2. 8
      packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue
  3. 6
      packages/nc-gui/components/smartsheet/calendar/MonthView.vue
  4. 4
      packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue
  5. 4
      packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue

4
packages/nc-gui/components/smartsheet/calendar/DayView/DateField.vue

@ -4,7 +4,7 @@ import type { ColumnType } from 'nocodb-sdk'
import { type Row, computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports'
import { isRowEmpty } from '~/utils'
const emit = defineEmits(['expand-record', 'new-record'])
const emit = defineEmits(['expand-record', 'newRecord'])
const meta = inject(MetaInj, ref())
@ -192,7 +192,7 @@ const newRecord = () => {
[calendarRange.value[0].fk_from_col!.title!]: selectedDate.value.format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emit('new-record', record)
emit('newRecord', record)
}
</script>

8
packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue

@ -4,7 +4,7 @@ import type { ColumnType } from 'nocodb-sdk'
import { type Row, computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports'
import { generateRandomNumber, isRowEmpty } from '~/utils'
const emit = defineEmits(['expandRecord', 'new-record'])
const emit = defineEmits(['expandRecord', 'newRecord'])
const {
// activeCalendarView,
@ -847,7 +847,7 @@ const newRecord = (hour: dayjs.Dayjs) => {
[calendarRange.value[0].fk_from_col!.title!]: hour.format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emit('new-record', record)
emit('newRecord', record)
}
</script>
@ -909,7 +909,7 @@ const newRecord = (hour: dayjs.Dayjs) => {
},
}
}
emit('new-record', record)
emit('newRecord', record)
}
"
>
@ -946,7 +946,7 @@ const newRecord = (hour: dayjs.Dayjs) => {
},
}
}
emit('new-record', record)
emit('newRecord', record)
}
"
>

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

@ -4,7 +4,7 @@ import type { ColumnType } from 'nocodb-sdk'
import { type Row, computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports'
import { generateRandomNumber, isRowEmpty } from '~/utils'
const emit = defineEmits(['new-record', 'expandRecord'])
const emit = defineEmits(['newRecord', 'expandRecord'])
const {
selectedDate,
@ -635,7 +635,7 @@ const addRecord = (date: dayjs.Dayjs) => {
[fromCol.title!]: date.format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emit('new-record', newRecord)
emit('newRecord', newRecord)
}
</script>
@ -738,7 +738,7 @@ const addRecord = (date: dayjs.Dayjs) => {
[calendarRange[0].fk_from_col!.title!]: (day).format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emit('new-record', record)
emit('newRecord', record)
}
"
>

4
packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue

@ -5,7 +5,7 @@ import type { Row } from '~/lib'
import { computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports'
import { generateRandomNumber, isRowEmpty } from '~/utils'
const emits = defineEmits(['expandRecord'])
const emits = defineEmits(['expandRecord', 'newRecord'])
const { selectedDateRange, formattedData, formattedSideBarData, calendarRange, selectedDate, displayField, updateRowProperty } =
useCalendarViewStoreOrThrow()
@ -529,7 +529,7 @@ const addRecord = (date: dayjs.Dayjs) => {
[fromCol.title!]: date.format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emits('new-record', newRecord)
emits('newRecord', newRecord)
}
</script>

4
packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue

@ -5,7 +5,7 @@ import type { Row } from '~/lib'
import { computed, isPrimary, ref, useViewColumnsOrThrow } from '#imports'
import { generateRandomNumber, isRowEmpty } from '~/utils'
const emits = defineEmits(['expandRecord'])
const emits = defineEmits(['expandRecord', 'newRecord'])
const {
selectedDateRange,
@ -733,7 +733,7 @@ const addRecord = (date: dayjs.Dayjs) => {
[fromCol.title!]: date.format('YYYY-MM-DD HH:mm:ssZ'),
},
}
emits('new-record', newRecord)
emits('newRecord', newRecord)
}
</script>

Loading…
Cancel
Save