Replies: 10 comments 13 replies
-
@ant-design/compatible 里有哪些组件? |
Beta Was this translation helpful? Give feedback.
-
How about import { xxx } from '@ant-design/compatible/v3';
import { xxx } from '@ant-design/compatible/v4'; |
Beta Was this translation helpful? Give feedback.
-
antd 依赖的 rc-xx 没有变更吗 |
Beta Was this translation helpful? Give feedback.
-
如何在一个包内同时兼容 v3 和 v4? |
Beta Was this translation helpful? Give feedback.
-
这个是指 jsx/runtime: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html? |
Beta Was this translation helpful? Give feedback.
-
对于语法糖的话,迁移不太好处理 |
Beta Was this translation helpful? Give feedback.
-
JSX
|
Beta Was this translation helpful? Give feedback.
-
Lessless import from antd 全部注释处理 |
Beta Was this translation helpful? Give feedback.
-
发现兼容包的兼容策略有两个问题
|
Beta Was this translation helpful? Give feedback.
-
What is wrong with Comment component? Why did you guys remove it |
Beta Was this translation helpful? Give feedback.
-
📋 RFC
Summary
Provider
@ant-design/compatible
package which support:Basic example
Components:
Less Varibles:
Motivation
For antd v5, we will mainly do:
Which will break current developer usage. We should provide the ability that make developer easy migration.
Detailed
To make this RFC done:
antd/lib/locales
toantd/locales
Affect components listing:
Drawbacks
Not support real less modification since we've change to css-in-js version. Which is only to provide the file to no to break reference usage.
Adoption strategy
First finish API updating in v4 version and PR on compatible package.
Beta Was this translation helpful? Give feedback.
All reactions