mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 10:58:25 +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;
|
return COLOR_TOKEN[name] || COLOR_TOKEN.DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getColorList(colorArray: [ColorToken]): string[] {
|
export function getColorList(colorArray: ColorToken[]): string[] {
|
||||||
const pureColorList = [];
|
const pureColorList = [];
|
||||||
colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key])));
|
colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key])));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user