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

[vue-function-api] CreateComponent is not working properly #13

Closed
zzzz-Z opened this issue Jun 28, 2019 · 6 comments
Closed

[vue-function-api] CreateComponent is not working properly #13

zzzz-Z opened this issue Jun 28, 2019 · 6 comments

Comments

@zzzz-Z
Copy link

zzzz-Z commented Jun 28, 2019

** How to use it correctly**

image
image
image

@liximomo
Copy link
Member

liximomo commented Jun 28, 2019

Sorry. Returning a function is not supported yet.

@zzzz-Z
Copy link
Author

zzzz-Z commented Jun 28, 2019

抱歉。还不支持返回函数,现在不支持JSX。

额 是自己人就说中文了 !
怎么在render 里使用 setup retrun 的值
image

image

@wjw99830
Copy link
Contributor

@Polaris-Z It's same as the 2.x render function. Use this.

@zzzz-Z
Copy link
Author

zzzz-Z commented Jun 28, 2019

@Polaris-Z It's same as the 2.x render function. Use this.

The main reason is that if you cannot get the setup retrun value in the render, you have no way to use it

@wjw99830
Copy link
Contributor

wjw99830 commented Jun 28, 2019

The main reason is that if you cannot get the setup retrun value in the render, you have no way to use it

Well, on the other hand, function-api provides powerful capabilities to extract logic, not just a new render function.

@posva
Copy link
Member

posva commented Jul 31, 2019

Closing in favor of #20

@posva posva closed this as completed Jul 31, 2019
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

4 participants