vue-element-utils icon indicating copy to clipboard operation
vue-element-utils copied to clipboard

bug: 对于设置了 destroy-on-close 的 dialog 关闭后再打开时 dialog-drag 指令会失效

Open novaeye opened this issue 4 years ago • 3 comments

当这样使用的时候, 只有首次打开时有效, 再打开就不能拖动了. <el-dialog v-el-dialog-drag destroy-on-close> ... </el-dialog>

novaeye avatar Aug 07 '21 04:08 novaeye

这是 Vue 的哪个版本

Ray-56 avatar Feb 18 '22 06:02 Ray-56

vue: 2.6.14 element-ui: 2.5.17

novaeye avatar Feb 18 '22 08:02 novaeye

destroy-on-close 这个指令是哪里的,我现在转到React栈了,好久没用再写过Vue的了

我猜测这个指令可能是 Ele 里面提供的,看名字的含义应该是注销后将弹窗关闭,可能关闭后将Dom移除了。

fork 一下自己魔改一下

Ray-56 avatar Mar 02 '22 07:03 Ray-56