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

使用h渲染函数的建议 #3337

Closed
long5635152 opened this issue Jul 25, 2022 · 4 comments
Closed

使用h渲染函数的建议 #3337

long5635152 opened this issue Jul 25, 2022 · 4 comments
Labels
feature request New feature or request

Comments

@long5635152
Copy link

This function solves the problem (这个功能解决的问题)

很多组件需要自定义内容的时候,文档上描述都是要求使用h渲染函数,但是实际操作起来很难用,内容复杂的情况下就是个灾难,为什么不改用slot插槽呢?

Expected API (期望的 API)

建议将需要使用h渲染函数的地方改为slot插槽

@github-actions github-actions bot added the feature request New feature or request label Jul 25, 2022
@07akioni
Copy link
Collaborator

这个讨论此次数也比较多了,是一个综合之后的权衡,没有完美的方案,都是踩下一头就翘起另一头。

#106

@long5635152
Copy link
Author

这个完全可以参考element+,element+不也是用的typescript吗?h函数体验真的不好,我的同事们没有不吐槽的

@chenbimo
Copy link

真难受。

@fudiwei
Copy link

fudiwei commented Aug 21, 2023

毛遂自荐 @skit/x.naive-ui,基于 Naive-UI 二次封装了 DataTable 组件,支持插槽式的写法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants