-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed as not planned
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
undefined
Environment
win10,Google Chrome, "vue": "^3.3.4",,"ant-design-vue": "^4.0.6",
Reproduction link
https://www.antdv.com/components/spin-cn
Steps to reproduce
<a-modal v-model:open="createConnVisible" :maskClosable="false" title="新建连接(MySQL)" centered>
<a-spin>
<a-tabs v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="常规">
</a-tab-pane>
<a-tab-pane key="2" tab="高级" force-render>
</a-tab-pane>
</a-tabs>
<template #footer>
<a-row>
<a-col :span="8">
<a-button type="primary" @click="checkFormRulesVailedAtConnMySQL(false)">测试连接</a-button>
</a-col>
<a-col :span="7" :offset="9">
<a-button key="submit" type="primary"
@click="checkFormRulesVailedAtConnMySQL(true)">确认</a-button>
<a-button key="back" @click="handleTopEvent">取消</a-button>
</a-col>
</a-row>
</template>
</a-spin>
</a-modal>
What is expected?
a-modal中使用 a-spin;希望能够给a-modal容器覆盖 展示一个加载框。
What is actually happening?
在a-modal中使用a-spin; 会导致 <template #footer>插槽失效 变成默认的Close,Ok两个按钮。插槽内按钮被替换;官网文档使用默认按钮隐藏就都是隐藏状态。使用 :footer 显示也没用。不用a-spin情况下是正常的