vue3 drag-handle _uid 的问题

This issue has been tracked since 2021-05-10.

设置了 drag-handle 后,控制台报 this._uid is undefined 错误。
定位到源代码是:
if (this.dragHandle && target.getAttribute('data-drag-handle') !== this._uid.toString()) { return; }
can't access _uid in vue3

ntgraph wrote this answer on 2022-02-18

I have this warning when enable drag handle
[Vue warn]: Unhandled error during execution of native event handler
at <VueDragResize dragHandle=".drag" key=0 w=140 ... >
Please help. Thanks in advance

augushong wrote this answer on 2022-05-06

怎么解决呢?

imouhero wrote this answer on 2022-05-06

怎么解决呢?

我把代码拉下来,自己做了一点点小修改,然后重新build。
Snipaste_2022-05-06_19-57-33

augushong wrote this answer on 2022-05-06

感谢回复。
我干脆直接自己写了一个拖动。
这个组件在vue2很好用。

steve-armadillo wrote this answer on 2022-07-25

@imouhero 感谢您找到修复程序,但是您现在如何将 src/component/vue-drag-resize.js 编译为 dist/index.js?

More Details About Repo
Owner Name kirillmurashov
Repo Name vue-drag-resize
Full Name kirillmurashov/vue-drag-resize
Language JavaScript
Created Date 2018-04-26
Updated Date 2022-11-25
Star Count 1764
Watcher Count 24
Fork Count 291
Issue Count 89

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date