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

使用的antd 配置了主题色,按照了@jdfed/form-generator 会把原本项目的主题色会覆盖。 #264

Open
2 tasks done
hqylss111 opened this issue Jun 7, 2023 · 7 comments
Labels
documentation Improvements or additions to documentation status: claimed Issue has been claimed by a contributor who plans to work on it.

Comments

@hqylss111
Copy link

hqylss111 commented Jun 7, 2023

Have you read the Contributing Guidelines on issues?

Description

使用的antd 配置了主题色,按照了@jdfed/form-generator 会把原本项目的主题色会覆盖。
使用的create-app cli 然后webpack里面配置了antd 主题。
安装了@jdfed/form-generator 后,会把项目原来的主题色替换,应该怎么去解决这个问题。

Self-service

  • I'd be willing to address this documentation request myself.
@hqylss111 hqylss111 added the documentation Improvements or additions to documentation label Jun 7, 2023
@mengshang918
Copy link
Collaborator

可以提供一个最小的demo嘛,方便排查。

@hqylss111
Copy link
Author

@jdfed/form-generator
你的源码里面默认会引用antd/dist/index.css
如果项目里面配置了主题色,由于组件是引用进去了 会比项目里面的antd css 层级靠后,就会被覆盖原本项目里面的css。

@hqylss111
Copy link
Author

可能你怕用户不引用antd css吧,怕你的交互会存在问题。

@mengshang918
Copy link
Collaborator

嗯嗯,有时间我复现一下,如果方便可以提供复现demo。

@hqylss111
Copy link
Author

好的 周末我提供一下demo。

@hqylss111
Copy link
Author

588808f6-41ce-4ec4-a790-fb495786c3a9
你有计划兼容这个 应该就是这个问题。

@github-actions
Copy link

This issue has been automatically marked as no-issue-activity because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the no-issue-activity stale action auto add label Jun 23, 2023
@mengshang918 mengshang918 added status: claimed Issue has been claimed by a contributor who plans to work on it. and removed no-issue-activity stale action auto add labels Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation status: claimed Issue has been claimed by a contributor who plans to work on it.
Projects
None yet
Development

No branches or pull requests

2 participants