mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 11:51:45 +08:00
fix: when borderRaidus is a string, the component displays an exception (#4102)
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user