Yuns
Yuns
> @tmkx as far as I can tell, HMR ins't working for content script on the `main` branch :-/ It is still not work for now.
> @tmkx But [plasmo](https://github.com/PlasmoHQ/plasmo) did it. After I tested, plasmo seems not supported content scripts TRUE HMR, related code: [consolidateUpdate()](https://github.com/PlasmoHQ/plasmo/blob/efcc29b1784a5c7d9ac25abf2be77fa9e8fe6cc3/core/parcel-runtime/src/runtimes/script-runtime.ts#L28), it reload page roughly, but [chrome-extension-tools](https://github.com/crxjs/chrome-extension-tools) supported. ref: https://github.com/PlasmoHQ/plasmo/issues/755
https://github.com/ant-design/pro-components/issues/7523 类似的问题,为什么没有一个重新 request 的方法呢,有点奇怪
在 request 里自己实现个参数合并可以解决,不过不优雅: ```ts let mergedParams= params; const formParams = await proFormRef.current?.getFieldsValue(); mergedParams= { ...mergedParams, ...pickBy(formParams, Boolean) }; ```
i patched package with pnpm like below: ```diff diff --git a/lib/utils/get-matched-rule-5.js b/lib/utils/get-matched-rule-5.js index 8b3f27a64a0c2b1492daa750f6d91c6ed0ddb155..ccffadaed0014390c9f895faa9251c45a7a7585d 100644 --- a/lib/utils/get-matched-rule-5.js +++ b/lib/utils/get-matched-rule-5.js @@ -8,23 +8,33 @@ const isSpriteLoader = (rule) => { return...
目前我是查找 style[rc-util-key="@ant-design-icons"] 节点,自己插到 shadow root 内的
> 我是直接把这个标签里的样式拷贝到内部的 css module 里去了,查找节点插入 shadow root 存在时序上的延迟,体验不是太好 那只能手动复制源码里的样式来处理了
@IamFive https://github.com/ant-design/ant-design-icons/blob/996040119c34c3fad203174267df3e007ca50789/packages/icons-react/src/utils.ts#LL88C14-L88C25 代码里的
> 这个我倒是看到了,我以为还有一份,就是针对每个 icon 有一个偏移设置的。我记得原来的icon都是有单独设置 `vertical-align`,代码里好像没找到。 看起来没有别的了吧,目前我没用这种方式,不知道会有什么问题
> 使用没影响就没关系,我是用的时候感觉有些icon没有跟文字对齐,有1px左右的偏移。 那可以跟 antd 网站对比下