ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

使用 colorLink 配置链接色后没有通过算法重新计算 colorLinkHover 和 colorLinkActive

Open guaijie opened this issue 1 year ago • 0 comments
trafficstars

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.2

Environment

vue: 3.x ; ant-design-vue: 4.2.1

Reproduction link

Edit on CodeSandbox image

antd demo image

Steps to reproduce

使用 ConfigProvider 来修改 colorLink 后,并没有通过算法重新计算 colorLinkHover 和 colorLinkActive

What is expected?

使用 ConfigProvider 来修改 colorLink 后用默认算法调整 colorLink 来重新为 colorLinkHover 和 colorLinkActive 配置颜色

What is actually happening?

通过 antd 的示例可以看到,antd 在设置了 colorLink 后,如果没有设置 colorLinkHover 和 colorLinkActive ,那么 antd 会使用 colorLink 去重新计算得到新的 colorLinkHover 和 colorLinkActive,但 ant-design-vue 并没重新计算生成

guaijie avatar Jun 06 '24 03:06 guaijie