Skip to content

Conversation

@zombieJ
Copy link
Member

@zombieJ zombieJ commented Mar 16, 2021

准备把注入相关的都收敛到 rc-util 里,去掉外部依赖。icons 还要加一下 csp 注入。

ref ant-design/ant-design#29763

@zombieJ zombieJ requested review from afc163 and shaodahong March 16, 2021 10:22
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #212 (df527dc) into master (3804cad) will increase coverage by 1.05%.
The diff coverage is 95.00%.

❗ Current head df527dc differs from pull request most recent head ab8f52f. Consider uploading reports for the commit ab8f52f to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
+ Coverage   51.17%   52.23%   +1.05%     
==========================================
  Files          39       40       +1     
  Lines         809      829      +20     
  Branches      290      296       +6     
==========================================
+ Hits          414      433      +19     
- Misses        339      340       +1     
  Partials       56       56              
Impacted Files Coverage Δ
src/Dom/dynamicCSS.ts 95.00% <95.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3804cad...ab8f52f. Read the comment docs.

}

const newNode = injectCSS(css, option);
newNode[MARK_KEY] = key;
Copy link
Member

@shaodahong shaodahong Mar 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里设置有问题吧,rc-util-key 是不是太定向了点

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是为了让 update 能找到原始的 style,这边故意做的很定制。我补一下 test case。

@zombieJ zombieJ marked this pull request as ready for review March 18, 2021 06:37
@zombieJ zombieJ merged commit a637112 into master Mar 18, 2021
@delete-merged-branch delete-merged-branch bot deleted the csp branch March 18, 2021 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants