We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
构建之后,使用npm link,example/vue2 的counter组件不正常,vue3是正常的。
看起来是render函数中无法读取到setup函数返回的count属性。通过调试,发现setup在vue2没有执行。这个问题比较奇怪。
打印this,里面没有count属性:
如果将组件发布到npm的话是正常的,目测可能是npm link之后某个依赖有问题。
另外vue2也存在2个小问题:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
构建之后,使用npm link,example/vue2 的counter组件不正常,vue3是正常的。
看起来是render函数中无法读取到setup函数返回的count属性。通过调试,发现setup在vue2没有执行。这个问题比较奇怪。
打印this,里面没有count属性:
如果将组件发布到npm的话是正常的,目测可能是npm link之后某个依赖有问题。
另外vue2也存在2个小问题:
The text was updated successfully, but these errors were encountered: