mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat:新增图表颜色滤镜
This commit is contained in:
@@ -44,9 +44,12 @@ export const animationsClass = (animations: string[]) => {
|
||||
return ''
|
||||
}
|
||||
|
||||
// 样式
|
||||
export const getStyle = (styles: StylesType) => {
|
||||
const { opacity, saturate, contrast, hueRotate, brightness } = styles
|
||||
return {
|
||||
// 透明度
|
||||
opacity: styles.opacity
|
||||
opacity: opacity,
|
||||
filter: `saturate(${saturate}) contrast(${contrast}) hue-rotate(${hueRotate}deg) brightness(${brightness})`
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user