mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore(avatar): let -> const (#2442)
* chore(avatar): let -> const * fix(avatar): fix fit prop validator * chore(avatar): remove fit prop validator
This commit is contained in:
@@ -61,7 +61,7 @@ export default defineComponent({
|
||||
|
||||
const avatarClass = computed(() => {
|
||||
const { size, icon, shape } = props
|
||||
let classList = ['el-avatar']
|
||||
const classList = ['el-avatar']
|
||||
if (size && typeof size === 'string') {
|
||||
classList.push(`el-avatar--${size}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user