elementui中 drawer 组件非正常关闭问题
背景看了 elementui 和 iview,都有这个问题。在 drawer 抽屉组件中复制的时候,鼠标移动的快了就会移动到抽屉外,此时抽屉弹窗就关闭了,这个交互不想要,希望在点击遮罩的时候再关闭。解决方案<template>
...
<el-drawer title="标题"
:append-to-body="true"
:visible.sync="drawer"
custom-class="drawer-test"
direction="rtl"
:destroy-on-close="true"
@mousedown.native="mousedownDrawer($event)"
@mouseup.native="mouseupDrawer($event)">
37
文章
5
分类