Skip to content

Commit

Permalink
perf: 优化头像组件属性
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 4, 2021
1 parent 968baa0 commit 5941a6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.8.6-4",
"version": "0.8.6-5",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
2 changes: 2 additions & 0 deletions src/component/form-designer/src/WidgetConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@
elementConfig.type !== 'blank' &&
elementConfig.type !== 'text' &&
elementConfig.type !== 'button' &&
elementConfig.type !== 'avatar' &&
elementConfig.type !== 'tabs'
"
>
Expand All @@ -457,6 +458,7 @@
elementConfig.type != 'html' &&
elementConfig.type != 'upload' &&
elementConfig.type != 'text' &&
elementConfig.type !== 'avatar' &&
elementConfig.type !== 'tabs'
"
label="校验"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
:show-file-list="false"
:on-success="handleAvatarSuccess"
>
<img :src="imageUrl" class="avatar" />
<img v-if="imageUrl" :src="imageUrl" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</template>

Expand Down

0 comments on commit 5941a6d

Please sign in to comment.