Browse Source

fix(nc-gui): added calendar injection

pull/7611/head
DarkPhoenix2704 8 months ago
parent
commit
441f76a6e6
  1. 2
      packages/nc-gui/components/smartsheet/Gallery.vue
  2. 3
      packages/nc-gui/components/smartsheet/Kanban.vue
  3. 3
      packages/nc-gui/components/smartsheet/grid/index.vue

2
packages/nc-gui/components/smartsheet/Gallery.vue

@ -6,6 +6,7 @@ import {
FieldsInj,
IsFormInj,
IsGalleryInj,
IsCalendarInj,
IsGridInj,
MetaInj,
NavigateDir,
@ -57,6 +58,7 @@ const {
provide(IsFormInj, ref(false))
provide(IsGalleryInj, ref(true))
provide(IsGridInj, ref(false))
provide(IsCalendarInj, ref(false))
provide(RowHeightInj, ref(1 as const))

3
packages/nc-gui/components/smartsheet/Kanban.vue

@ -7,6 +7,7 @@ import {
IsFormInj,
IsGalleryInj,
IsGridInj,
IsCalendarInj,
IsKanbanInj,
IsLockedInj,
IsPublicInj,
@ -104,6 +105,8 @@ provide(IsGridInj, ref(false))
provide(IsKanbanInj, ref(true))
provide(IsCalendarInj, ref(false))
const hasEditPermission = computed(() => isUIAllowed('dataEdit'))
const fields = inject(FieldsInj, ref([]))

3
packages/nc-gui/components/smartsheet/grid/index.vue

@ -6,6 +6,7 @@ import {
ActiveViewInj,
FieldsInj,
IsFormInj,
IsCalendarInj,
IsGalleryInj,
IsGridInj,
MetaInj,
@ -95,6 +96,8 @@ provide(IsGalleryInj, ref(false))
provide(IsGridInj, ref(true))
provide(IsCalendarInj, ref(false))
provide(RowHeightInj, rowHeight)
// reload table data reload hook as fallback to rowdatareload

Loading…
Cancel
Save