fix: 拖动框地脚null类型异常,不支持footer插槽
This commit is contained in:
@@ -48,7 +48,7 @@ const props = defineProps({
|
|||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
type: Object,
|
type: Object as any,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -429,6 +429,7 @@ onMounted(() => {
|
|||||||
:visible="modalState.visibleByView"
|
:visible="modalState.visibleByView"
|
||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
|
:footer="null"
|
||||||
>
|
>
|
||||||
<a-form layout="horizontal" :label-col="{ span: 6 }" :labelWrap="true">
|
<a-form layout="horizontal" :label-col="{ span: 6 }" :labelWrap="true">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
@@ -477,11 +478,6 @@ onMounted(() => {
|
|||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
</a-descriptions>
|
</a-descriptions>
|
||||||
</a-form>
|
</a-form>
|
||||||
<template #footer>
|
|
||||||
<a-button key="cancel" @click="fnModalCancel">
|
|
||||||
{{ t('common.close') }}
|
|
||||||
</a-button>
|
|
||||||
</template>
|
|
||||||
</DraggableModal>
|
</DraggableModal>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user