mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(hooks): 状态管理模块拆分
This commit is contained in:
8
src/store/modules/theme/helpers.ts
Normal file
8
src/store/modules/theme/helpers.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { brightenColor, darkenColor } from '@/utils';
|
||||
|
||||
export function getHoverAndPressedColor(color: string) {
|
||||
return {
|
||||
hover: brightenColor(color),
|
||||
pressed: darkenColor(color)
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user