antd-tiny-vue/components/theme/themes/shared/genControlHeight.ts

14 lines
343 B
TypeScript
Raw Normal View History

2023-03-02 07:16:36 +08:00
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