mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +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']
|
|
}
|