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, FieldsInj,
IsFormInj, IsFormInj,
IsGalleryInj, IsGalleryInj,
IsCalendarInj,
IsGridInj, IsGridInj,
MetaInj, MetaInj,
NavigateDir, NavigateDir,
@ -57,6 +58,7 @@ const {
provide(IsFormInj, ref(false)) provide(IsFormInj, ref(false))
provide(IsGalleryInj, ref(true)) provide(IsGalleryInj, ref(true))
provide(IsGridInj, ref(false)) provide(IsGridInj, ref(false))
provide(IsCalendarInj, ref(false))
provide(RowHeightInj, ref(1 as const)) provide(RowHeightInj, ref(1 as const))

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

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

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

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

Loading…
Cancel
Save