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