From 47175cf9afcd86b0b92f7121ce0c3d85b948b6dd Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 1 Jul 2021 19:59:22 +0800 Subject: ... --- FrontEnd/src/views/common/button/common.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FrontEnd/src/views/common/button/common.ts') diff --git a/FrontEnd/src/views/common/button/common.ts b/FrontEnd/src/views/common/button/common.ts index a9db959e..0d84bae0 100644 --- a/FrontEnd/src/views/common/button/common.ts +++ b/FrontEnd/src/views/common/button/common.ts @@ -20,7 +20,11 @@ export function calculateProps( } { const { text, color, className, children, ...otherProps } = props; const newProps = { - className: classNames(buttonClassName, color ?? "primary", className), + className: classNames( + buttonClassName, + color != null ? "cru-" + color : "cru-primary", + className + ), ...otherProps, }; -- cgit v1.2.3