perf: 优化颜色组件展示

This commit is contained in:
奔跑的面条 2023-02-26 13:08:22 +08:00
parent a407d118fa
commit 196df94aee

View File

@ -168,8 +168,8 @@ const computedColorList = (color?: string) => {
}) })
return { return {
default: [...comLightenArr.splice(0, parseInt(`${num / 2}`)), ...comDarkenArr.splice(0, parseInt(`${num / 2}`))], default: [...comLightenArr.reverse().splice(0, parseInt(`${num / 2}`) - 9), ...comDarkenArr.splice(0, parseInt(`${num / 2}`))],
fade: comDarkenFadeArr fade: comDarkenFadeArr.reverse().splice(0, 27)
} }
} }