mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(components): 修复按钮Tab自适应主题颜色
This commit is contained in:
@ -8,6 +8,14 @@ export function brightenColor(color: string) {
|
||||
return chroma(color).brighten(0.5).hex();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更浅的颜色
|
||||
* @param color
|
||||
*/
|
||||
export function shallowColor(color: string, alpha: number = 0.5) {
|
||||
return chroma(color).alpha(alpha).hex();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更暗的颜色
|
||||
* @param color
|
||||
|
@ -12,6 +12,6 @@ export {
|
||||
isMap
|
||||
} from './typeof';
|
||||
|
||||
export { brightenColor, darkenColor } from './color';
|
||||
export { brightenColor, shallowColor, darkenColor } from './color';
|
||||
|
||||
export { dynamicIconRender } from './icon';
|
||||
|
@ -22,6 +22,7 @@ export {
|
||||
isSet,
|
||||
isMap,
|
||||
brightenColor,
|
||||
shallowColor,
|
||||
darkenColor,
|
||||
dynamicIconRender
|
||||
} from './common';
|
||||
|
Reference in New Issue
Block a user