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

feat: 🎸 使用uni-app开发微信小程序时,当从vue2迁移到vue3后,此组件需要改如下几个地方。否则无法正常渲染。 #398

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

zhouhuafei
Copy link
Contributor

问题场景

  • uni-app vue2升级到vue3

开发工具

  • HBuilder X 3.3.10.20220124

改动逻辑

  • 1、导入需要使用import,否则无法解析。
  • 2、导出需要使用export,否则无法解析。
  • 3、wxs语法解析不了,导致报错:ReferenceError: handler is not defined
    • 所以我把wxs语法中的逻辑,挪到了js中。
    • 然后把handler.use(n)改为了handlerUse(n)

新年祝福

  • 祝看到此条PR的各位,新年快乐,身体健康,万事如意。

@jin-yufeng jin-yufeng merged commit b30025d into jin-yufeng:master Feb 7, 2022
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 this pull request may close these issues.

None yet

2 participants