|
|
@ -12,7 +12,6 @@ import { |
|
|
|
useUIPermission, |
|
|
|
useUIPermission, |
|
|
|
watch, |
|
|
|
watch, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import {BaseType} from "nocodb-sdk"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dropZone = ref<HTMLDivElement>() |
|
|
|
const dropZone = ref<HTMLDivElement>() |
|
|
|
|
|
|
|
|
|
|
@ -99,7 +98,7 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) { |
|
|
|
'modelValue': isOpen, |
|
|
|
'modelValue': isOpen, |
|
|
|
'importType': type, |
|
|
|
'importType': type, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
'baseId': bases.value[0].id, |
|
|
|
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
vNode.value?.component?.exposed?.handleChange({ |
|
|
|
vNode.value?.component?.exposed?.handleChange({ |
|
|
@ -130,7 +129,7 @@ function openCreateTable() { |
|
|
|
const { close } = useDialog(resolveComponent('DlgTableCreate'), { |
|
|
|
const { close } = useDialog(resolveComponent('DlgTableCreate'), { |
|
|
|
'modelValue': isOpen, |
|
|
|
'modelValue': isOpen, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, |
|
|
|
'baseId': bases.value[0].id, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function closeDialog() { |
|
|
|
function closeDialog() { |
|
|
|