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

ProComponent 3.0 路线图 #8178

Open
chenshuai2144 opened this issue Feb 21, 2024 · 19 comments
Open

ProComponent 3.0 路线图 #8178

chenshuai2144 opened this issue Feb 21, 2024 · 19 comments

Comments

@chenshuai2144
Copy link
Contributor

2023 年 02 月 发布 ProComponent 2.0 之后,我们一直在做着兼容 antd@4 和 antd@5 的工作,随着时间的推进,2022 年 11 月发布的 antd5 覆盖率已经超过了百分之 60,最近社区也做了一份文件调查,72% 的用户也已经升级到了 antd@5。ProComponent 也是时候轻装上阵去掉 antd@4 的支持来换取更小的包大小,更好的试用体验。

image.png

3.0 中我们主要会做的以下的一些非兼容性操作

  • 去除 antd@4 的兼容性
  • 优化包大小和性能

🗑 去除 antd@4 的兼容性

为了兼容 antd@4 我们增加了一些适应性的代码,例如

// 兼容性代码
import 'antd/lib/list/style';

这样的代码会导致在线上多导入一份 css,在 5.0 中我们可以去掉它,另外还有一系列的 compareVersions 代码,我们将会全部与最新的 antd5 进行兼容不再兼容旧版本 antd。
image.png

另外为了兼容我们无法试用 antd 的新特性 ,例如 ColorPicker 和 Flex 等组件,去除之后将会大大的减少包大小。

👜 优化包大小

由于 ProForm 的设计和 ValueType 的设计,我们默认绑定了一系列的组件进去,在引入一个组件的情况下就相当于引入了所有的组件,至少带来了 700k 的 gzip 大小。
image.png
3.0 我们会解决掉这个问题,完善 Tree Shaking 的问题。同时这样也能让性能提升不少。

📯 3.0 的规划

image.png

基于问卷的数据和投入资源的取舍,未来会优先考虑功能性,确保组件的功能齐全、易用性强。同时也会关注性能方面,确保组件库在运行时的效率和性能表现。最受欢迎的 Form 组件同时也是问题最多的组件,在包大小优化中我们会优先解决 ProForm 的问题,为了 Form 带来更多会更好的特性。
同时对于性能比较堪忧的 ProTable 我们也会 进行一些性能的优化,性能基本像 antd 看齐。

问卷数据如下:

ProComponents 新年调查(1-300).xlsx

如果你有任何其他的问题,欢迎在下方评论。

@leshalv
Copy link
Contributor

leshalv commented Feb 21, 2024

奥利给

@faner11
Copy link
Contributor

faner11 commented Feb 21, 2024

非常期待你们的工作,pro-component很好用,但是太重了,包大小问题一直是我比较头疼的问题

@asd116725
Copy link

干就完了,兄弟们

@bugfix2020
Copy link

期待

1 similar comment
@chj-damon
Copy link
Contributor

期待

@kaoding
Copy link
Contributor

kaoding commented Feb 26, 2024

希望在API 上和antd 5.0 一致,设计上风格也保持和 5.0 一致

@echoyl
Copy link

echoyl commented Feb 27, 2024

期待

@lin-mt
Copy link

lin-mt commented Mar 2, 2024

预计在什么时间点发布 3.0 呢

@hihuangwei
Copy link
Contributor

期待中...

@fengzehao
Copy link

期待3.0,ProComponent超级好用

@xiaochong444
Copy link

会有表单设计器吗?

@oswayne
Copy link

oswayne commented Apr 11, 2024

我很喜欢 ProComponents,它非常的好用。期待 3.0 版本的到来。

@fnoopv
Copy link
Contributor

fnoopv commented Apr 15, 2024

会去掉rc-util依赖吗,StrictMode 的问题一直没处理,每次打开console都报错,看得难受

@imsunhao
Copy link

我很喜欢 ProComponents,它非常的好用。期待 3.0 版本的到来。

1 similar comment
@luna825
Copy link

luna825 commented Apr 22, 2024

我很喜欢 ProComponents,它非常的好用。期待 3.0 版本的到来。

@rongxingsun
Copy link
Contributor

能否增加一个select弹框选择器
image
可单选和多选
https://opentiny.design/tiny-vue/zh-CN/os-theme/components/popeditor

@Gzbox
Copy link

Gzbox commented May 8, 2024

有新版的发布路线吗?

@wzbmail
Copy link

wzbmail commented May 14, 2024

部分组件封装的request,建议格式统一,比如:modalForm的request 使用的是直接的响应内容,而Protable的request 使用的data的;
pro组件的样式尽量以ant design的组件样式为主,避免样式和antd不一致;
pro组件的token抛出来,允许像antd一样能更好的全局设置

@bxvs888
Copy link

bxvs888 commented May 20, 2024

3.0 什么时候可以发布???

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

No branches or pull requests