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

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

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ const props = defineProps({
default: false,
},
footer: {
type: Object,
type: Object as any,
},
});
+1 -5
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>