Browse Source

geodata: integrate dummy map view

pull/4140/head
flisowna 2 years ago
parent
commit
fc44e69e0d
  1. 4
      packages/nc-gui/components/tabs/Smartsheet.vue
  2. 2
      packages/nc-gui/composables/useSmartsheetStore.ts

4
packages/nc-gui/components/tabs/Smartsheet.vue

@ -35,7 +35,7 @@ const fields = ref<ColumnType[]>([])
const meta = computed<TableType | undefined>(() => activeTab.value && metas.value[activeTab.value.id!])
const { isGallery, isGrid, isForm, isKanban, isLocked } = useProvideSmartsheetStore(activeView, meta)
const { isGallery, isGrid, isForm, isKanban, isLocked, isMap } = useProvideSmartsheetStore(activeView, meta)
const reloadEventHook = createEventHook<void | boolean>()
@ -73,6 +73,8 @@ provide(TabMetaInj, activeTab)
<LazySmartsheetForm v-else-if="isForm && !$route.query.reload" />
<LazySmartsheetKanban v-else-if="isKanban" />
<LazySmartsheetMap v-else-if="isMap" />
</div>
</div>
</template>

2
packages/nc-gui/composables/useSmartsheetStore.ts

@ -31,6 +31,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
const isForm = computed(() => view.value?.type === ViewTypes.FORM)
const isGallery = computed(() => view.value?.type === ViewTypes.GALLERY)
const isKanban = computed(() => view.value?.type === ViewTypes.KANBAN)
const isMap = computed(() => view.value?.type === ViewTypes.MAP)
const isSharedForm = computed(() => isForm.value && shared)
const xWhere = computed(() => {
let where
@ -65,6 +66,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
isGrid,
isGallery,
isKanban,
isMap,
cellRefs,
isSharedForm,
sorts,

Loading…
Cancel
Save