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

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

iview的modal点击确定消失(自动关闭)问题,自定义modal页脚

 iview的modal点击确定消失(自动关闭)问题,自定义modal页脚

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

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

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-05
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案