fix: 拖动框地脚null类型异常,不支持footer插槽
This commit is contained in:
@@ -48,7 +48,7 @@ const props = defineProps({
|
||||
default: false,
|
||||
},
|
||||
footer: {
|
||||
type: Object,
|
||||
type: Object as any,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user