How should I build with render in <script setup> #10612
Closed
tetezi
started this conversation in
General Discussions
Replies: 1 comment
-
也许可以尝试建 tsx 文件然后导出
在其它页面使用
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在 <script setup>里,我应该如何不通过template构建而是直接使用render构建?
In <script setup>, how do I build directly with render instead of template?
我之前的做法是
What I did before was this
但这并不优雅,请问存在其他被我忽略的api吗?
But that's not elegant. Are there other apis I overlooked?
如果没有的话,后续版本可能会添加对应功能的宏吗?像是defineRender?
If not, are macros for this feature likely to be added in future versions? Like defineRender?
Beta Was this translation helpful? Give feedback.
All reactions