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

解决Vue3使用时候,编译报错问题。 #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amdfans9801
Copy link

Solve the compilation error when using Vue3.

该PR的类型是? (至少选择一个)

  • Bug修复
  • 新特性
  • 新组件

该PR是否向下兼容? (选择任一)

如果为否,请描述冲突情况:

涉及到的ISSUE:

  • 该PR如果涉及到某个ISSUE, 请在PR标题中描述出来 (例如. fix #xxx[,#xxx], "xxx"为ISSUE序号)

是否在Chrome浏览器下进行过测试?

如果这是一个新特性新组件相关的PR,请提供如下信息

  • 添加该特性或组件的原因
  • 文档应该修改哪些信息
  • 测试相关

提交新特性新组件前请先发起一个相关的ISSUE请求

其他信息:

Solve the compilation error when using Vue3.
@amdfans9801
Copy link
Author

key需要绑定在真实的元素上,所以编译的时候template里面v-for报错,只是在内部套了一层div,让编译通过即可

@Megasu Megasu mentioned this pull request Jun 8, 2023
11 tasks
@xixileng
Copy link
Member

xixileng commented Jul 6, 2023

这个应该直接加给具体的组件就好,不需要套一层,增加了 dom 结构的复杂程度

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