mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +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