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

针对ant design4x 和 design5x 样式方面的兼容 #1146

Open
leshalv opened this issue Apr 10, 2023 · 9 comments
Open

针对ant design4x 和 design5x 样式方面的兼容 #1146

leshalv opened this issue Apr 10, 2023 · 9 comments
Assignees
Labels
in progress 进入开发周期

Comments

@leshalv
Copy link
Contributor

leshalv commented Apr 10, 2023

ant design4 和ant design5 样式实现不同,目前项目中使用less进行样式更改存在问题,项目使用自定义prefixCls的情况下,会导致 x-render 样式失效。

@lhbxs
Copy link
Collaborator

lhbxs commented Apr 10, 2023

这不应该是工程项目方面去兼容吗?

@leshalv
Copy link
Contributor Author

leshalv commented Apr 11, 2023

我意思是xrender内的样式 prefixCls 是写死的,没办法根据工程项目prefixCls动态处理,导致xrender的样式混乱。

@leshalv
Copy link
Contributor Author

leshalv commented Apr 11, 2023

比如xrender内的一段样式代码,如果工程项目制定了prefixCls,xrender的这段样式是不是就是无效的?

image

@lhbxs
Copy link
Collaborator

lhbxs commented Apr 13, 2023

了解,后面解一下

@MoYuM MoYuM self-assigned this Apr 26, 2023
@MoYuM MoYuM added bug Something isn't working in progress 进入开发周期 labels Apr 26, 2023
@lhbxs lhbxs removed the bug Something isn't working label May 12, 2023
@lhbxs
Copy link
Collaborator

lhbxs commented May 25, 2023

这一块组件把 ant 前缀改成了 less @ant-prefix: ant; 变量, 你工程方面能做适配吗?

@leshalv
Copy link
Contributor Author

leshalv commented May 25, 2023

css in js 如何处理呀

@lhbxs
Copy link
Collaborator

lhbxs commented May 25, 2023

你有什么想法

@lhbxs
Copy link
Collaborator

lhbxs commented May 25, 2023

其实 组件里面的重写样式也不是很多,复制到工程里面重写一遍也行

@leshalv
Copy link
Contributor Author

leshalv commented May 25, 2023

其实 组件里面的重写样式也不是很多,复制到工程里面重写一遍也行

感觉可以参考一下其他库如何兼容的,复制到工程重写感觉有点麻烦了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress 进入开发周期
Projects
None yet
Development

No branches or pull requests

3 participants