0
点赞
收藏
分享

微信扫一扫

解决 iview-modal 点击‘确定’按钮弹框自动关闭问题


在使用iview发现点击确定的时候,他的弹层会自动关闭(默认的确定和取消 footer)
解决办法 使用slot="footer"添加一个footer,自定义确定取消的方法控制弹层的显示与隐藏。

<div slot="footer">
<Button
size="large"
@click="showDialog = false"
>取消</Button>
<Button
type="primary"
size="large"
@click="submitDialog"
>确定</Button>
</div>

解决 iview-modal 点击‘确定’按钮弹框自动关闭问题_自定义


举报

相关推荐

0 条评论