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 example counter 不正常 #1

Open
laoboxie opened this issue Jun 14, 2022 · 0 comments
Open

vue2 example counter 不正常 #1

laoboxie opened this issue Jun 14, 2022 · 0 comments

Comments

@laoboxie
Copy link

laoboxie commented Jun 14, 2022

构建之后,使用npm link,example/vue2 的counter组件不正常,vue3是正常的。

看起来是render函数中无法读取到setup函数返回的count属性。通过调试,发现setup在vue2没有执行。这个问题比较奇怪。

打印this,里面没有count属性:
image

如果将组件发布到npm的话是正常的,目测可能是npm link之后某个依赖有问题。

另外vue2也存在2个小问题:

  • Transition 没有被vue-demi导出
    image
  • 本地开发是否可以使用vue2进行预览?
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

No branches or pull requests

1 participant