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

2.0 版本可以取消 antd 的强绑定么? 🙏 #2680

Closed
5 tasks
XiChaoMing opened this issue Apr 24, 2024 · 2 comments
Closed
5 tasks

2.0 版本可以取消 antd 的强绑定么? 🙏 #2680

XiChaoMing opened this issue Apr 24, 2024 · 2 comments
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题

Comments

@XiChaoMing
Copy link

🏷 Version

Package Version
@antv/s2 2.0.0
@antv/s2-react 2.0.0
@antv/s2-vue -

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

🏞 What problem does this feature solve

  • 长期维护项目使用的 antd 版本是 4.9.4
  • 要使用 S2 的 2.0 版本,但是 2.0 版本需要 5.0 版本的 antd
  • 升级 antd 到 5.0 版本的代价过高,会有很多 css 样式带来的问题 (升级原因仅仅是因为要使用 S2 的 2.0 版本......)
  • 是否考虑取消对于 antd 的强绑定?

🧐 Suggest the API

是否考虑取消对于 antd 的强绑定?

@XiChaoMing XiChaoMing added the 🙏feature request 新需求支持 label Apr 24, 2024
@lijinke666
Copy link
Member

暂时不会考虑, 大版本升级必然会带来很多不兼容的改动, 主要是为了长远考虑和以后得可维护性, 这边有两个建议:

  • 2.0 版本的 s2-react 主要是 分页/下钻/Tooltip/高级排序/指标切换 等分析组件依赖 antd, antd 5 可以多版本共存, 如果你对 s2-react 的这些分析组件有强诉求可以考虑多版本共存.
  • 如果仅仅是使用了 <SheetComponent />, 只是希望在 React 中使用 S2, 那么完全可以只使用无任何额外依赖的 @antv/s2, 参考 在 React 中使用 @antv/s2

@XiChaoMing
Copy link
Author

好的,谢谢~

@lijinke666 lijinke666 added the next 2.0-next 版本的问题 label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

2 participants