mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
14 lines
349 B
TypeScript
14 lines
349 B
TypeScript
|
import type { HeightMapToken, SeedToken } from '../../interface';
|
||
|
|
||
|
const genControlHeight = (token: SeedToken): HeightMapToken => {
|
||
|
const { controlHeight } = token;
|
||
|
|
||
|
return {
|
||
|
controlHeightSM: controlHeight * 0.75,
|
||
|
controlHeightXS: controlHeight * 0.5,
|
||
|
controlHeightLG: controlHeight * 1.25,
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export default genControlHeight;
|