当我们在使用iview的modal时,发现当点击确定时想操作一些事件,但是modal已经消失
这时需要自定义modal的页脚了
modal中插入以下元素代码,然后可以编辑自己的自定义方法了
<div slot="footer"> <Button type="text" @click="handleCancle">取消</Button> <Button type="primary" @click="handleComfirm">确定</Button> </div>
当我们在使用iview的modal时,发现当点击确定时想操作一些事件,但是modal已经消失
这时需要自定义modal的页脚了
modal中插入以下元素代码,然后可以编辑自己的自定义方法了
<div slot="footer"> <Button type="text" @click="handleCancle">取消</Button> <Button type="primary" @click="handleComfirm">确定</Button> </div>
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。