diff options
author | crupest <crupest@outlook.com> | 2021-07-01 19:59:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-07-01 19:59:22 +0800 |
commit | 47175cf9afcd86b0b92f7121ce0c3d85b948b6dd (patch) | |
tree | 58573f98df9815fe677f2345c5ce944fe4a65c11 /FrontEnd/src/views/common/button/common.ts | |
parent | e5af20ffe6a1091a022f97c65f3091f245dfd1d7 (diff) | |
download | timeline-47175cf9afcd86b0b92f7121ce0c3d85b948b6dd.tar.gz timeline-47175cf9afcd86b0b92f7121ce0c3d85b948b6dd.tar.bz2 timeline-47175cf9afcd86b0b92f7121ce0c3d85b948b6dd.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/button/common.ts')
-rw-r--r-- | FrontEnd/src/views/common/button/common.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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, }; |