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

是否可以在一个component里面定义一个函数类型的子component? #148

Closed
bernkastle opened this issue Jun 19, 2018 · 4 comments

Comments

@bernkastle
Copy link

image
类似于这样的一个component。
但是编译好像通不过。

@yuche
Copy link
Contributor

yuche commented Jun 19, 2018

不行,现在一个文件只能定义一个组件

@cgx9
Copy link

cgx9 commented Jun 20, 2018

什么时候可以支持?
现在全新文件的子组件,render里map值给一个变量都不行,写起来有点痛苦。

@yuche
Copy link
Contributor

yuche commented Jun 20, 2018

使用 map 可以呀,怎么通不过能贴一下你的代码吗 @cgx9

@yuche
Copy link
Contributor

yuche commented Jun 24, 2018

Duplicate of #157

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

3 participants