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函数调整为template 插槽 #2054

Closed
muchenfine opened this issue Dec 28, 2021 · 4 comments
Closed

是否考虑将组件中的H函数调整为template 插槽 #2054

muchenfine opened this issue Dec 28, 2021 · 4 comments
Labels
feature request New feature or request

Comments

@muchenfine
Copy link

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

体验不友好

Expected API (期望的 API)

是否考虑将组件中的H函数调整为template 插槽

@github-actions github-actions bot added the feature request New feature or request label Dec 28, 2021
@muchenfine
Copy link
Author

目前看element antd arco 都是template , antd也从h函数都修改成了template, 我认为这是友好的

@07akioni
Copy link
Collaborator

这个问题讨论了比较多次了,在之前一些 datatable 的 issue 里面有。

简单来说就是开发成本划不来,不符合正确性优先的理念,你可以关注一下过往的 issue。

@07akioni
Copy link
Collaborator

没有绝对的对错,只是选择,slot 在很多场景确实更简单

@fudiwei
Copy link

fudiwei commented Aug 21, 2023

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

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

3 participants