iview的modal点击确定消失问题,自定义modal页脚

当我们在使用iview的modal时,发现当点击确定时想操作一些事件,但是modal已经消失

这时需要自定义modal的页脚了

 

 modal中插入以下元素代码,然后可以编辑自己的自定义方法了

<div slot="footer">
      <Button type="text" @click="handleCancle">取消</Button>
      <Button type="primary" @click="handleComfirm">确定</Button>
</div>

猜你喜欢

转载自www.cnblogs.com/lhjfly/p/11785920.html