<template>
<a-modal
:title="title"
:width="modalWidth"
:visible="visible"
:confirmLoading="confirmLoading"
@cancel="handleCancel"
cancelText="关闭"
:closable="closable"
:keyboard="keyboard"
:maskClosable="maskClosable"
:destroyOnClose="true"
>
<template slot="footer" >
<a-button @click="handleCancel">关闭</a-button>
</template>
<a-spin :spinning="confirmLoading">
<div style="text-align: center">
<a-row v-if="QRUrl">
<img :src="QRUrl">
</a-row>
<a-row v-if="!QRUrl">
<p>获取公众号二维码失败,请联系管理员</p>
</a-row>
</div>
</a-spin>
</a-modal>
</template>
Vue 设置modal的按钮 只保留取消
最新推荐文章于 2024-02-01 10:03:32 发布