fix: 拖动框地脚null类型异常,不支持footer插槽

This commit is contained in:
TsMask
2024-03-07 17:00:20 +08:00
parent 7e28df210d
commit 06170ba38f
2 changed files with 2 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ const props = defineProps({
default: false,
},
footer: {
type: Object,
type: Object as any,
},
});

View File

@@ -429,6 +429,7 @@ onMounted(() => {
:visible="modalState.visibleByView"
:title="modalState.title"
@cancel="fnModalCancel"
:footer="null"
>
<a-form layout="horizontal" :label-col="{ span: 6 }" :labelWrap="true">
<a-row :gutter="16">
@@ -477,11 +478,6 @@ onMounted(() => {
</a-descriptions-item>
</a-descriptions>
</a-form>
<template #footer>
<a-button key="cancel" @click="fnModalCancel">
{{ t('common.close') }}
</a-button>
</template>
</DraggableModal>
</PageContainer>
</template>