Skip to content

Commit

Permalink
feat: add tooltip for icon-upload
Browse files Browse the repository at this point in the history
为上传icon添加文字提示
  • Loading branch information
yanglbme committed Dec 1, 2019
1 parent f986ced commit d76bc24
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@
<!-- 图片上传 -->
<el-upload action="https://cors-anywhere.herokuapp.com/https://sm.ms/api/v2/upload"
headers="{'Content-Type': 'multipart/form-data'}" :show-file-list="false" :multiple="false"
accept=".jpg,.jpeg,.png,.gif" :limit="1" name="smfile" :on-success="uploaded" :on-error="failed" :on-progress="uploading">
<i class="el-icon-upload" size="medium">&nbsp;</i>
accept=".jpg,.jpeg,.png,.gif" :limit="1" name="smfile" :on-success="uploaded" :on-error="failed"
:on-progress="uploading">
<el-tooltip class="item" effect="dark" content="点击上传图片" placement="bottom-start">
<i class="el-icon-upload" size="medium">&nbsp;</i>
</el-tooltip>
</el-upload>
<el-form size="mini" class="ctrl" :inline=true>
<el-form-item label="编辑器主题">
Expand Down

0 comments on commit d76bc24

Please sign in to comment.