mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
8 lines
229 B
TypeScript
8 lines
229 B
TypeScript
|
import { componentSizeMap } from '@element-plus/constants'
|
||
|
|
||
|
import type { ComponentSize } from '@element-plus/constants'
|
||
|
|
||
|
export const getComponentSize = (size?: ComponentSize) => {
|
||
|
return componentSizeMap[size || 'default']
|
||
|
}
|