From c2fd782c369b30bbab78aaf502d8e61911dbeaa6 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 9 Aug 2022 23:50:07 +0800 Subject: [PATCH] feat(gui-v2): add importOnly --- packages/nc-gui-v2/components/dlg/QuickImport.vue | 4 +++- packages/nc-gui-v2/pages/nc/[projectId]/index/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/components/dlg/QuickImport.vue b/packages/nc-gui-v2/components/dlg/QuickImport.vue index c9ccf6dd6b..78c4354f26 100644 --- a/packages/nc-gui-v2/components/dlg/QuickImport.vue +++ b/packages/nc-gui-v2/components/dlg/QuickImport.vue @@ -16,9 +16,10 @@ import { useProject } from '#imports' interface Props { modelValue: boolean importType: 'csv' | 'json' | 'excel' + importOnly: boolean } -const { importType, ...rest } = defineProps() +const { importType, importOnly, ...rest } = defineProps() const emit = defineEmits(['update:modelValue']) @@ -265,6 +266,7 @@ function getAdapter(name: string, val: any) { ref="templateEditorRef" :project-template="templateData" :import-data="importData" + :import-only="importOnly" :quick-import-type="importType" @import="handleImport" /> diff --git a/packages/nc-gui-v2/pages/nc/[projectId]/index/index.vue b/packages/nc-gui-v2/pages/nc/[projectId]/index/index.vue index b7c54f9937..f61687c7af 100644 --- a/packages/nc-gui-v2/pages/nc/[projectId]/index/index.vue +++ b/packages/nc-gui-v2/pages/nc/[projectId]/index/index.vue @@ -134,7 +134,7 @@ function openQuickImportDialog(type: string) { - +