首页 > 其他 > 详细

vue antD model对话框底部按钮

时间:2021-07-14 11:53:26      阅读:12      评论:0      收藏:0      [点我收藏+]

自带model底部通常只有确定跟取消,如果要重新定义model底部按钮的个数需要用到作用域插槽,如下代码:

<a-button type="primary" @click="visible = true">打开Model</a-button>
<a-modal
title="这是一个Model"
:visible="visible"
:confirm-loading="confirmLoading"
@cancel="handleCancel"
>
<template slot="footer">
<a-button type="primary">按钮1</a-button>
<a-button type="primary">按钮2</a-button>
<a-button type="danger">按钮3</a-button>
</template>
</a-modal>
数据我就不贴了,大家都有,下面是结果图:

技术分享图片

 

 



vue antD model对话框底部按钮

原文:https://www.cnblogs.com/SolitaryOrchid/p/15009336.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!