Modal属性footer-hide设置为true,隐藏默认的modal底部,使用slot插入自定义的底部按钮
1 <Modal title="标题" v-model="modal1" :footer-hide=true> 2 <div slot="footer"> 3 <Button type="ghost">取消</Button> 4 <Button type="primary" @click="confirmFun">确定</Button> 5 </div> 6 </Modal>
Modal属性footer-hide设置为true,隐藏默认的modal底部,使用slot插入自定义的底部按钮
1 <Modal title="标题" v-model="modal1" :footer-hide=true> 2 <div slot="footer"> 3 <Button type="ghost">取消</Button> 4 <Button type="primary" @click="confirmFun">确定</Button> 5 </div> 6 </Modal>
转载于:https://www.cnblogs.com/snowRock/p/10636994.html