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:
qige2016
2021-07-05 21:10:59 -05:00
committed by GitHub
parent 7bc6baf495
commit c34ffaa386

View File

@@ -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}`)
}