vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.87k stars 546 forks source link

setup context merge api - Alternative to Verbosity of the Return Statement #198

Closed caikan closed 3 years ago

caikan commented 4 years ago

Rendered

HerringtonDarkholme commented 4 years ago

Hi @caikan, thanks for your active contribution! While addressing verbosity of return statement, the merge api looks similar to the generator function proposal https://github.com/vuejs/rfcs/pull/180.

Meanwhile, verbosity is better solved by the new <script setup> format proposed here.

caikan commented 4 years ago

@HerringtonDarkholme Thank you. I think the advantage of my RFC is that it can focus on solving the currently disturbing pain points in the most convenient and effective way without introducing additional complexity. Therefore, the applicable scenarios will be more extensive and more acceptable. 谢谢,我认为我这个RFC的优点是,能够用最便捷有效的方式专注解决目前让人非常困扰的痛点,且不会引入额外的复杂度,因此适用的场景会更广泛,也更易于被接受。

yyx990803 commented 3 years ago

Thanks for the proposal. Closing in favor of <script setup>.