From bac7b00143d60624379e2079578d22f6502b0346 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 22 Jul 2022 14:28:04 +0800 Subject: [PATCH] feat(gui-v2): use a-modal --- .../nc-gui-v2/components/dlg/FileImport.vue | 138 +++++++++--------- 1 file changed, 73 insertions(+), 65 deletions(-) diff --git a/packages/nc-gui-v2/components/dlg/FileImport.vue b/packages/nc-gui-v2/components/dlg/FileImport.vue index e11c2051c2..2e3bba6bca 100644 --- a/packages/nc-gui-v2/components/dlg/FileImport.vue +++ b/packages/nc-gui-v2/components/dlg/FileImport.vue @@ -80,75 +80,83 @@ const handleChange = (info: UploadChangeParam) => { } } -const loadUrl = () => {} +const handleSubmit = () => { + if (activeKey.value === 'upload') { + // TODO + } else if (activeKey.value === 'url') { + // TODO + try { + validate() + } catch (e) { + // TODO + } + } else if (activeKey.value === 'json') { + // TODO + } +}