Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue2.x下使用VTreeDrop报错 #73

Open
nieyuyao opened this issue Sep 26, 2023 · 1 comment · May be fixed by #75
Open

vue2.x下使用VTreeDrop报错 #73

nieyuyao opened this issue Sep 26, 2023 · 1 comment · May be fixed by #75

Comments

@nieyuyao
Copy link

Bug 描述

vue 2.6.14下,使用VTreeDrop组件发生报错

复现步骤

https://stackblitz.com/edit/vitejs-vite-z2qafx?file=src%2Fmain.js,src%2FTreeDemo.vue,package.json,src%2FTreeDrop.vue

可以将stackblitz下载到本地,不清楚为什么stackblitz上会报错,会检测成vue3

期望表现

没有报错

实际表现
image

组件版本

  • Vue: 2.6.14
  • @wsfe/vue-tree: 3.1.0

额外信息

None

@nieyuyao nieyuyao linked a pull request Oct 4, 2023 that will close this issue
@ChuChencheng
Copy link
Collaborator

查了下是 vue2 vue3 兼容的问题,类似还有 v-model 在 vue2 也不能用, vue2 里的 $listeners 也没法正常使用。
建议 vue2 项目还是用 @wsfe/ctree 这个包吧。

https://juejin.cn/post/7236184868480663589#heading-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants