mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
@@ -48,9 +48,11 @@ export default defineComponent({
|
||||
|
||||
const sizeStyle = computed(() => {
|
||||
const { size } = props
|
||||
return {
|
||||
'--el-avatar-size': isNumber(size) ? addUnit(size) : undefined,
|
||||
} as CSSProperties
|
||||
return isNumber(size)
|
||||
? ({
|
||||
'--el-avatar-size': addUnit(size),
|
||||
} as CSSProperties)
|
||||
: undefined
|
||||
})
|
||||
|
||||
const fitStyle = computed<CSSProperties>(() => ({
|
||||
|
||||
Reference in New Issue
Block a user