|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import type { UploadChangeParam, UploadFile } from 'ant-design-vue' |
|
|
|
|
import type { BaseType } from 'nocodb-sdk' |
|
|
|
|
import { |
|
|
|
|
message, |
|
|
|
|
ref, |
|
|
|
@ -98,6 +99,7 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) {
|
|
|
|
|
'modelValue': isOpen, |
|
|
|
|
'importType': type, |
|
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
|
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
vNode.value?.component?.exposed?.handleChange({ |
|
|
|
@ -128,7 +130,7 @@ function openCreateTable() {
|
|
|
|
|
const { close } = useDialog(resolveComponent('DlgTableCreate'), { |
|
|
|
|
'modelValue': isOpen, |
|
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
|
'baseId': bases.value[0].id, |
|
|
|
|
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
function closeDialog() { |
|
|
|
|