Commit 344c4994 by Vben Committed by GitHub

fix: when borderRaidus is a string, the component displays an exception (#4102)

1 parent 992b9bae
...@@ -56,7 +56,9 @@ export function useAntdDesignTokens() { ...@@ -56,7 +56,9 @@ export function useAntdDesignTokens() {
tokens.colorBgBase = getCssVariableValue('--background'); tokens.colorBgBase = getCssVariableValue('--background');
tokens.borderRadius = getCssVariableValue('--radius', false); const radius = Number.parseFloat(getCssVariableValue('--radius', false));
// 1rem = 16px
tokens.borderRadius = radius * 16;
tokens.colorBgLayout = getCssVariableValue('--background-deep'); tokens.colorBgLayout = getCssVariableValue('--background-deep');
tokens.colorBgMask = getCssVariableValue('--overlay'); tokens.colorBgMask = getCssVariableValue('--overlay');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!