edited 一、参数modal设置为false会导致弹窗无法正常展示 代码 <el-drawer title="我是标题" v-model="drawer" :direction="direction" :modal="false" :before-close="handleClose" destroy-on-close> 我来啦! </el-drawer> 通过官网的调试功能,和目前我个人代码中的环境都会产生问题。 版本:^1.0.1-beta...
contains("el-dialog__wrapper"); }; }, methods: { handleWrapperClick() { if (!this.closeOnClickModal || !this.wrapperMouseDowned) return; this.handleClose(); }, }, }; const DrawerPatched = { extends: Drawer, data() { return { wrapperMouseDowned: false, }; }, mounted() { this....
🎉 A Vue.js 3 UI Library made by Element team. Contribute to element-plus/element-plus development by creating an account on GitHub.
遮罩和下层的内容覆盖在了抽屉之上. 解决办法是修改append-to-body和modal-append-to-body属性,把抽屉插入至 body 元素上,把遮罩插入至抽屉的父元素上,具体代码: 代码语言:javascript 复制 <el-drawer:append-to-body="true":modal-append-to-body="false"></el-drawer> element官方的说明:...