Skip to content

Commit

Permalink
fix(components): exclude empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
HeftyKoo committed Jun 2, 2022
1 parent f36b570 commit 9643020
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/components/space/src/use-space.ts
Expand Up @@ -6,9 +6,8 @@ import type { SpaceProps } from './space'
import type { CSSProperties, StyleValue } from 'vue'
import type { ComponentSize } from '@element-plus/constants'

const SIZE_MAP: Record<ComponentSize, number> = {
const SIZE_MAP: Record<Exclude<ComponentSize, ''>, number> = {
small: 8,
'': 8,
default: 12,
large: 16,
}
Expand Down

0 comments on commit 9643020

Please sign in to comment.