ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
247 stars 61 forks source link

feat: StyleProvider support config hashedPriority #48

Closed zombieJ closed 2 years ago

zombieJ commented 2 years ago

通过配置方式确定是否需要通过 where 注入 hashed,默认是注入。

github-actions[bot] commented 2 years ago

🎊 PR Preview 9d97ecb4255a42b97c6582ba6910e0a6f059ceef has been successfully built and deployed to https://ant-design-cssinjs-preview-pr-48.surge.sh

:clock1: Build time: 209.761s

🤖 By surge-preview

codecov-commenter commented 2 years ago

Codecov Report

Base: 94.53% // Head: 91.02% // Decreases project coverage by -3.51% :warning:

Coverage data is based on head (9d97ecb) compared to base (3e2dabc). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #48 +/- ## ========================================== - Coverage 94.53% 91.02% -3.52% ========================================== Files 11 11 Lines 476 468 -8 Branches 150 148 -2 ========================================== - Hits 450 426 -24 - Misses 26 42 +16 ``` | [Impacted Files](https://codecov.io/gh/ant-design/cssinjs/pull/48?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | Coverage Δ | | |---|---|---| | [src/util.ts](https://codecov.io/gh/ant-design/cssinjs/pull/48/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL3V0aWwudHM=) | `77.87% <ø> (-14.63%)` | :arrow_down: | | [src/StyleContext.tsx](https://codecov.io/gh/ant-design/cssinjs/pull/48/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL1N0eWxlQ29udGV4dC50c3g=) | `93.93% <100.00%> (+0.18%)` | :arrow_up: | | [src/hooks/useStyleRegister.tsx](https://codecov.io/gh/ant-design/cssinjs/pull/48/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL2hvb2tzL3VzZVN0eWxlUmVnaXN0ZXIudHN4) | `98.51% <100.00%> (-0.03%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.