mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
perf: 优化颜色组件展示
This commit is contained in:
parent
a407d118fa
commit
196df94aee
@ -168,8 +168,8 @@ const computedColorList = (color?: string) => {
|
||||
})
|
||||
|
||||
return {
|
||||
default: [...comLightenArr.splice(0, parseInt(`${num / 2}`)), ...comDarkenArr.splice(0, parseInt(`${num / 2}`))],
|
||||
fade: comDarkenFadeArr
|
||||
default: [...comLightenArr.reverse().splice(0, parseInt(`${num / 2}`) - 9), ...comDarkenArr.splice(0, parseInt(`${num / 2}`))],
|
||||
fade: comDarkenFadeArr.reverse().splice(0, 27)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user