mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 20:56:33 +08:00
fix: getColorList parmas type (#1)
This commit is contained in:
parent
c01032bd4f
commit
07b63e32fa
|
@ -157,7 +157,7 @@ export function getBrandColor(type: string): ColorToken {
|
|||
return COLOR_TOKEN[name] || COLOR_TOKEN.DEFAULT;
|
||||
}
|
||||
|
||||
export function getColorList(colorArray: [ColorToken]): string[] {
|
||||
export function getColorList(colorArray: ColorToken[]): string[] {
|
||||
const pureColorList = [];
|
||||
colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key])));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user