From e843e1d9f67dae198d3b351c020ac2792bb5dd20 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 19 Oct 2022 16:37:53 +0800 Subject: [PATCH] feat(nc-gui): add auto-select field types & use first row as headers checkbox --- .../nc-gui/components/dlg/QuickImport.vue | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/dlg/QuickImport.vue b/packages/nc-gui/components/dlg/QuickImport.vue index 0e38ffb281..2f24557d4b 100644 --- a/packages/nc-gui/components/dlg/QuickImport.vue +++ b/packages/nc-gui/components/dlg/QuickImport.vue @@ -68,6 +68,8 @@ const importState = reactive({ parserConfig: { maxRowsToParse: 500, normalizeNested: true, + autoSelectFieldTypes: true, + firstRowAsHeaders: true, importData: true, }, }) @@ -446,21 +448,33 @@ const beforeUpload = (file: UploadFile) => {
- + {{ $t('title.advancedSettings') }} - + - + + + Auto-Select Field Types + + + + + + Use First Row as Headers + + + +
{{ $t('labels.flattenNested') }}
- +
{{ $t('labels.importData') }}