mirror of
				https://github.com/antd-tiny-vue/antd-tiny-vue.git
				synced 2025-11-01 01:01:44 +08:00 
			
		
		
		
	feat: add build
This commit is contained in:
		| @@ -1,7 +1,12 @@ | ||||
| import { generate } from '@ant-design/colors' | ||||
| import genControlHeight from '../shared/genControlHeight' | ||||
| import genSizeMapToken from '../shared/genSizeMapToken' | ||||
| import type { ColorPalettes, MapToken, PresetColorType, SeedToken } from '../../interface' | ||||
| import type { | ||||
|   ColorPalettes, | ||||
|   MapToken, | ||||
|   PresetColorType, | ||||
|   SeedToken | ||||
| } from '../../interface' | ||||
| import { defaultPresetColors } from '../seed' | ||||
| import genColorMapToken from '../shared/genColorMapToken' | ||||
| import genCommonMapToken from '../shared/genCommonMapToken' | ||||
| @@ -10,7 +15,8 @@ import { generateColorPalettes, generateNeutralColorPalettes } from './colors' | ||||
|  | ||||
| export default function derivative(token: SeedToken): MapToken { | ||||
|   const colorPalettes = Object.keys(defaultPresetColors) | ||||
|     .map((colorKey: keyof PresetColorType) => { | ||||
|     .map((value) => { | ||||
|       const colorKey = value as keyof PresetColorType | ||||
|       const colors = generate(token[colorKey]) | ||||
|  | ||||
|       return new Array(10).fill(1).reduce((prev, _, i) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user