|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="user-info-head" @click="open()">
|
|
|
- <img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
|
|
|
- <img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
|
|
|
+ <el-avatar v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
|
|
|
+ <el-avatar v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
|
|
|
<el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
|
|
|
{{ btnText ? btnText : t('cropper.selectImage') }}
|
|
|
</el-button>
|