mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
parent
e8a66adffd
commit
8b801cfd8a
@ -6,7 +6,7 @@ export const isValidWidthUnit = (val: string | number): boolean =>{
|
||||
} else {
|
||||
return ['px', 'rem', 'em', 'vw', '%', 'vmin', 'vmax'].some(unit =>
|
||||
(val as string).endsWith(unit),
|
||||
)
|
||||
) || (val as string).startsWith('calc')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user